| |
jlpabich
Posts: 1
Score: 0
Joined: 6/17/2003
From:
Status: offline
|
I am trying to write a script that executes and executable file through a DOS prompt. Here is what I have so far: Dim strCommand Dim WSHShell strCommand = "cfgtest Set WSHShell = WScript.CreateObject("WScript.Shell") ' Execute the start order command WSHShell.Run strCommand, 1, True Set WSHShell = Nothing WScript.Quit(0) If you were to run this from a DOS prompt, I would type in d:\cfgtest The cfgtest.exe executes the code in eis.cfg. When I run this now, it opens the DOS prompt and sits there. What am I missing?
|
|