Dec 1, 2003 #1 werjocks Programmer Joined Oct 27, 2003 Messages 24 Location US VBscripts don't seem to carry the FileCopy command from Visual Basic. Is there a simple alternative for backing up a file?
VBscripts don't seem to carry the FileCopy command from Visual Basic. Is there a simple alternative for backing up a file?
Dec 1, 2003 #2 DanaHallenbeck IS-IT--Management Joined Sep 27, 2000 Messages 63 Location US Set Filesys = CreateObject("scripting.filesystemobject" Filesys.CopyFile(<path & filename>, <path & filename>, True) The "True" at the end tells it to replace the destination file if it exists...obviously "False" does just the opposite. Dana Hallenbeck Upvote 0 Downvote
Set Filesys = CreateObject("scripting.filesystemobject" Filesys.CopyFile(<path & filename>, <path & filename>, True) The "True" at the end tells it to replace the destination file if it exists...obviously "False" does just the opposite. Dana Hallenbeck
Dec 1, 2003 Thread starter #3 werjocks Programmer Joined Oct 27, 2003 Messages 24 Location US thankyou very much Upvote 0 Downvote