Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29343 Discussions

Could "CreateProcess" call the command of "copy"?

intelhelp2009
Beginner
707 Views
I tied to use "CreateProcess" to copy file and theCMDLINE is like:

CMDLINE= 'Copy file1.txt file2.txt'

Hoever it didn't work. Is there a way to copy file by using "CreateProcess"?


Thanks!





0 Kudos
1 Reply
Steven_L_Intel1
Employee
707 Views
You'd be better off using ShellExecute, but there is also a CopyFile routine. See the samples under Miscellaneous\CopyFolder. CreateProcess probably could be used, but it's more complicated to set up.
0 Kudos
Reply