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

Copy Directory Structure to other PC

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
Using vbscript, I would like to copy the directory structure from one pc to another at a given time using NT Scheduler.

Copy this directory structure c:\test\applicationFiles\ to E:\test\ (location to another box.

Any help is much appreciated.

 
set fso = Wscript.Createobject("Scripting.FileSystemObject")
fso.CopyFolder "c:\test\applicationFiles\*", "E:\test", true

results in all files and subfolders within application files appearing under test.


or
set fso = Wscript.Createobject("Scripting.FileSystemObject")
fso.CopyFolder "c:\test\applicationFiles", "E:\test\", true


results in all files and subfolders appearing as follows

e:\test\applicationFiles etc etc


Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top