Click to See Complete Forum and Search --> : Windows Scripting Host


Bhavin
11-11-2002, 03:17 PM
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.
Thanks.