Copy operation fails when running executable using shortcut.
- by MiloDC
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.