|
 |
asptoday_discuss thread: WScript Shell
Message #1 by "laeg byrne" <laeg_enterprises@y...> on Mon, 3 Dec 2001 17:04:53
|
|
Is there a certain restriction on what a wscript shell
can execute??? The sample code below would work were
xyz to be instantiated to ping, ipconfig, etc. Yet
if you wanted it to execute a non system batch file
it cannot do so. Any ideas??????
Set objWSHShell = CreateObject("WScript.Shell")
strCommand = " xyz "
Set objExec = objWSHShell.Exec (strCommand)
Message #2 by "Greg Jennings" <greg.jennings@t...> on Mon, 3 Dec 2001 19:13:46
|
|
> Is there a certain restriction on what a wscript shell
> can execute??? The sample code below would work were
> xyz to be instantiated to ping, ipconfig, etc. Yet
> if you wanted it to execute a non system batch file
> it cannot do so. Any ideas??????
>
> Set objWSHShell = CreateObject("WScript.Shell")
> strCommand = " xyz "
> Set objExec = objWSHShell.Exec (strCommand)
It seems like only executable programs (.EXE's) can be executed. Have you
specified the full path, filename, and extension of the batch file?
|
|
 |