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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move multiple files from multiple locations to a single directory 1

Status
Not open for further replies.

at1knowitall

Technical User
Sep 6, 2007
4
US
I am needing to move files from \\whdb\new, \\whdb\new1 and \\whdb\new2 to \\whdb\admin directory.

If anyone can help that would be greatly appreciated.

Thanks,
Mark
 
Look into the FileSystemObject. For example:
Code:
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFile "\\whdb\new\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new1\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new2\*.*", "\\whdb\admin"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top