Copy operation fails when running executable using shortcut.

Posted by MiloDC on Stack Overflow See other posts from Stack Overflow or by MiloDC
Published on 2010-05-30T03:29:48Z Indexed on 2010/05/30 3:32 UTC
Read the original article Hit count: 180

Filed under:
|
|

I've coded a C# executable that uses xcopy (cmd.exe /Q /D /C xcopy [args]) to duplicate some files.

If I run the .exe by double-clicking it, the xcopy operation works every time.

If I run the .exe by double-clicking a shortcut to the .exe, the xcopy works only if the shortcut is in the same folder as the .exe.

This makes absolutely no sense to me, I wouldn't even know where to begin to find the answer.

So, you know, help.

© Stack Overflow or respective owner

Related posts about c#

Related posts about shortcut