Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : invoke a command line program in ASP



Srichand
10/16/2003 5:11:58 AM
<%
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.
Tom Kaminski [MVP]
10/16/2003 9:47:23 AM
[quoted text, click to view]

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

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


AddThis Social Bookmark Button