Software Archive
Read-only legacy content

Copying files

Intel_C_Intel
Employee
449 Views
I am writing a program that automatically updates a set of input files for an older version of my code to a new format. I want to be able to copy all the input files (including ones that do not need to be reformatted) into a subdirectory under the one containing the input files for the old version. Does anyone know of a routine that will allow me to copy files from one directory to another using wildcards? Searching the help files turned up routines to find, rename, and delete files, but none for copying files. As a workaround, I have used the SYSTEMQQ routine, but a DOS window pops up, which is going to be confusing for the user. Thanks for any help.

Tom
0 Kudos
1 Reply
Steven_L_Intel1
Employee
449 Views
The CopyFile Win32 API routine is easy to use. You'll have to wrap this in a loop using GETFILEINFOQQ for the wildcarding.

Steve
0 Kudos
Reply