I'm trying to write a simple VBScript to copy one file into two different folders. The script works fine when broken into two separate scripts (one file one destination location) but throws an error message when combined (one file two destination locations). The script I'm currently using is posted below.
Thanks in advance.
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "FileName", "C:\Destination1\", OverwriteExisting
objFSO.CopyFile "FileName","C:\Destination2\", OverwriteExisting