I have the following code for copying files
sprintf(command, "copy /Y %s %s", sourceFile, targetFile);
system(command);
It works, except for the dos window, which is very annoying.
I am trying to use CreateProcess () (C # ifdef for WINNT), but not sure how to configure the command line for this. Any other options for copying files in C (on windows) without displaying the dos window?
source
share