/build/static/layout/Breadcrumb_cap_w.png

XCOPY Command

I am trying to copy the shortcut icon on the desktop this icon is a windows DOS-Program and my command line looks like this

xcopy "Shortcut.lnk" "C:\Documents and Settings\All Users\Desktop\Shortcut.lnk" /C /q /H /R /E /Y < f.txt >> c:\windows\smspkg\logs\Shortcut.log

Any reason why it would not copy the Dos-program icon on the desktop ?

0 Comments   [ + ] Show comments

Answers (3)

Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
ORIGINAL: chichora2003
I am trying to copy the shortcut icon on the desktop this icon is a windows DOS-Program and my command line looks like this

xcopy "Shortcut.lnk" "C:\Documents and Settings\All Users\Desktop\Shortcut.lnk" /C /q /H /R /E /Y < f.txt >> c:\windows\smspkg\logs\Shortcut.log

Any reason why it would not copy the Dos-program icon on the desktop ?


what does your shortcut.log file say and why are you using xcopy instead of copy? That's usually to copy a folder structure
Posted by: anonymous_9363 16 years ago
Red Belt
0
What are you trying to achieve? There's no need to faff about with COPY, XCOPY or anything like that, as copying a shortcut file can be achieved natively in MSI.
Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
VB, I was gonna say the same thing. Although you'd think that package development would be the MSI forum there was no context in the original post that the the OP was using an MSI or even knows what one is! It looks like he's trying some sort of batch file to do this.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ