Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

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

intelhelp2009
Beginner
572 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
572 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