how to copy files without showing dos window
- by vinaym
I have the following code to copy files
sprintf(command, "copy /Y %s %s", sourceFile, targetFile);
system(command);
It works except for the dos window showing up which is very annoying.
I am trying to use CreateProcess() (with an #ifdef for WINNT), but not sure how to setup the command line for the same.
Any other options for copying files in C (on windows) without showing dos window?