| |
Country73
Posts: 712
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
|
object.CopyFile ( source, destination[, overwrite] ) SET oFS = CREATEOBJECT("Scripting.FileSystemObject") IF oFS.FileExists("\\<server>\<share>\<file>")THEN oFS.CopyFile "\\<server>\<share>\<file>", "\\<destinationServer>\<share>\",FALSE END IF SET oFS = NOTHING Copies one file, if exists, to a new location. DOES NOT overwrite if the file already exists in new location. The default for overwriting the file is TRUE.
|
|