Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

program to do recursive file copy

Status
Not open for further replies.

buddyel

MIS
Mar 3, 2002
279
US
Very simply, I would like to write a small utility that copies all files that match the *_bak.mdb pattern in all subfolder under C:\Sessions to a location such as C:\SessionsBackup.

More advanced, I'd like to match the folder where the *_bak.mdb file was copied from to a matching folder in the SessionsBackup folder and would like to create a folder with todays date and copy the file there.

For example.
C:\Sessions\7600\7600_bak.mdb
Copied to
C:\SessionsBackup\7600\030606\7600_bak.mdb

Any help on accomplishing this or even just getting it started would be greatly appreciated.
 
Take a look at a utility called xxcopy. It should do what you want.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top