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!

copying files

Status
Not open for further replies.

werjocks

Programmer
Oct 27, 2003
24
US
VBscripts don't seem to carry the FileCopy command from Visual Basic. Is there a simple alternative for backing up a file?
 
Set Filesys = CreateObject("scripting.filesystemobject")
Filesys.CopyFile(<path & filename>, <path & filename>, True)

The &quot;True&quot; at the end tells it to replace the destination file if it exists...obviously &quot;False&quot; does just the opposite.

Dana Hallenbeck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top