Set wn = WScript.CreateObject("WScript.Network"
Set fs = CreateObject("Scripting.FileSystemObject"
Set ws = CreateObject("WScript.Shell"
This script copies thr file %SYSTEMROOT%\somefile.txt (if windows was installed at c:\winnt then the this would be c:\winnt\somefile.txt) to %SYSTEMROOT%\somefile.bak
The Syntax for the copyfile method is fs.CopyFile Varible1, Varible2
The varibles need to be file paths or you will get an error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.