- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Tom
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The CopyFile Win32 API routine is easy to use. You'll have to wrap this in a loop using GETFILEINFOQQ for the wildcarding.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page