[WSH] Windows Scripting Host

When I try to use the wshShell.Run method on my win2k box from an ASP page, the command doesn't run. My code is something like this:

StrCmd = "D:TMPTry1createApp.bat " & AppName
Set WshShell = Server.CreateObject("WScript.Shell")
retval = WshShell.Run(StrCmd, 0, true)

I get retval always as 1.
createApp.bat is just a batch file with Application Center 2000 command "ac application /create /name:%1"

If anyone has any ideas, I'd greatly appreciate it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!