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!

move all specific files from entire disk

Status
Not open for further replies.

bojzon

IS-IT--Management
Sep 18, 2003
25
SI
Need help with subroutine:

searching on entire C:\ for:
- all specific files (p.e. starting with characters BACK - "BACK123.XLK"
- with extension XLK(or XLS, or DOC),
except searching (skip) folder C:\Backups

- and MOVE all (with overwrite) to destination C:\Backups\M
- and COPY all (with overwrite) to destination C:\Backups\C

thanks

Bojzon
 
What have you so far ?
Take a look at the FileSystemObject instantiated like this:
Set fso = CreateObject("Scripting.FileSystemObject")
On line documentation here

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Entire C disk with all subdirectories levels ???
 
Yes it's possible taking in account that VBA functions are recursive.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top