Does anyone know how to copy a file to another place? As well as how to create a shortcut in a specific path?
Thanks
Printable View
Does anyone know how to copy a file to another place? As well as how to create a shortcut in a specific path?
Thanks
You can use the system() function which is like typing at a DOS prompt.
Code:#include <cstdlib>
using namespace std;
// ...
sprintf(szCmd, "copy %s %s", szSrc, szDest);
system(szCmd);
Can you give me an example?
Also do you know how to create a shortcut?
For API there's the CopyFile function. I coudn't find a function to create a link to a file.