amit Posted July 27, 2006 Report Share Posted July 27, 2006 Hi, I was writing a script to copy a file to other location. But it is giving me error when I am giving it path for example "&WinDir%\system32\". If I give it exact path like "c:\winnt\system32", it is doing well. Please take a look at it if there is any error in it.Const OverwriteExisting = TRUESet objFSO1 = CreateObject("Scripting.FileSystemObject")objFSO1.CopyFile "example.txt" , "%WinDir%\System32\", OverwriteExistingSet objFSO2 = CreateObject("Scripting.FileSystemObject")objFSO2.CopyFile "example2.txt" , "%WinDir%\System32\", OverwriteExistingThanx in Advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.