How to use the WScript.Shell?
Posted on 2001-07-26
set oShell = Server.CreateObject ("WScript.Shell")
cmd = "%COMSPEC% /c xcopy c:\test.txt d:\dellsftw\kevin"
oShell.run cmd, 0, true
Above is the script I used to copy a file called test.txt from C:\ to D:\Dellsftw\Kevin.
During the first time I run this script I found it ok but I tried it for the second and third time, my Internet explorer keep on saying opening page, it seems like never ending. Why like this?
Where can I find the documentation for WScript object's information like what is the methods and properties inside, so that I know how to use it in the future.
Thanks for your help.