PDA

View Full Version : WshShell Object and ASP (W2K)



lbyii
01-31-2006, 02:03 PM
I have an ASP page where I create a WshShell object, and using the RUN command to execute a script it seems that the WshShell command never instaniates and runs the command-line program. If I call the exact code within a VBS program WSH exceutes without any issues.

I thought there might be an issue with the IIS server permissions to execute scripts and executables, but these settings are set, so I am at a loss for what the problem may be. Any help will be appreciated.

I have included the code for review so all can view and comment. Thanks

<%
'Create the Windows Scripting Host Shell Object
Set objShell = CreateObject("Wscript.Shell")
objShell.Run ("d:\apps\cognos\cer4\bin\trnsfrmr.exe ""Financial Archives Live.pyi"""),1, True
%>

Brf
01-31-2006, 02:40 PM
Try:

Set objShell = Server.CreateObject("Wscript.Shell")
rtn=objShell.Run ("....")