invoke a command line program in ASP

invoke a command line program in ASP

Post by Srichan » Fri, 17 Oct 2003 21:11:58


<%
Dim oShell
Dim iRreturn
Set oShell = GetObject("","Wscript.Shell")
If oshell is nothing Then
Set oShell = Server.CreateObject("Wscript.Shell")
End If
oShell.Run "notepad.exe",3, iRreturn
Set oShell = Nothing
%>
When I run the above code no error message is displayed
but notepad.exe is not displayed. Every time I execute
this code new Process ID is created for notepad and this
can be found in the task manager. I have granted launch
permissions to anonymous and interactive user accounts. In
Home Tab the application configuration is as follows
Allow scripts and executable and application is low pooled.
Awaiting solution. Thanks in advance.
 
 
 

invoke a command line program in ASP

Post by Tom Kamins » Fri, 17 Oct 2003 22:47:23


Please don't multi-post. Answered in another forum ...

--
Tom Kaminski IIS MVP
http://www.yqcomputer.com/ , scripts, and utilities for running IIS
http://www.yqcomputer.com/
http://www.yqcomputer.com/