15 pts.
 help with a vbscript to copy files to a remote computer and overwrite a file if it is already there…
I already have the script to copy the files over and it is working on my local pc. All pc's are on the same domain. Set FSO =CreateObject("scripting.FileSystemObject") FSO.CopyFile "\SAN1Files*", "c:Metatr~1" ,True

Software/Hardware used:
ASKED: March 18, 2009  5:27 PM
UPDATED: May 18, 2009  2:47 PM

Answer Wiki:
I believe that the problem with your code is the source file path. You have a *. The syntex is wrong. You either need to specify the file name with extension, or use a wild card like *.*... or *.txt. Set FSO =CreateObject("scripting.FileSystemObject") FSO.CopyFile "\SAN1FilesFile.Txt", "c:Metatr~1" ,True Set FSO =CreateObject("scripting.FileSystemObject") FSO.CopyFile "\SAN1Files*.*", "c:Metatr~1" ,True Set FSO =CreateObject("scripting.FileSystemObject") FSO.CopyFile "\SAN1Files*.Txt", "c:Metatr~1" ,True
Last Wiki Answer Submitted:  May 18, 2009  12:46 pm  by  Raedyn   15 pts.
All Answer Wiki Contributors:  Raedyn   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks Raedyn

 15 pts.