Login | |
|
 |
Re: How to run windows native commands - 6/24/2004 1:32:47 AM
|
|
 |
|
| |
mbouchard
Posts: 1922
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
use CMD for NT and above or Command for 9x WshShell.Run "CMD /C dir c:\ >> c:\diroutput.txt",1,TRUE /C will close the CMD prompt window when it completes WshShell.Run "CMD /K dir c:\ >> c:\diroutput.txt",1,TRUE /K will leave the CMD prompt window open until you close it, thus stopping the script. You can use most DOS commands this way. I use xcopy extensivly in my scripts, you just may need to figure out "'s though as it can be a pain.
|
|
| |
|
|
|
 |
Re: How to run windows native commands - 6/24/2004 1:34:45 AM
|
|
 |
|
| |
mbouchard
Posts: 1922
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Gary, As a followup to your post, if you put a ,1,TRUE on the end of the line to launch your BAT file the Script would wait for the BAT file to be completed before continuing. ie oShell.run "c:\prepare.bat",1,TRUE
|
|
| |
|
|
|
|
|