WScript.Shell
From: jim (anonymous_at_discussions.microsoft.com)
Date: 06/08/04
- Next message: Alex K. Angelopoulos [MVP]: "Re: How to make a user close a program when they disconnect a TS Session"
- Previous message: Michael Holzemer: "Re: remote ip configuration"
- Next in thread: Viatcheslav V. Vassiliev: "Re: WScript.Shell"
- Reply: Viatcheslav V. Vassiliev: "Re: WScript.Shell"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Jun 2004 09:01:01 -0700
I am trying to use run function of WScript.Shell in my asp code to simply open a notepad for test.
if I use
<%
Dim WshShell, intReturn
Set WshShell = server.CreateObject("WScript.Shell")
intReturn = WshShell.run ("C:\winnt\system32\notepad.exe")
Response.Write(intReturn)
%>
nothing happened I got "0" as return value.
then I used
<%
Dim WshShell, intReturn
Set WshShell = server.CreateObject("WScript.Shell")
intReturn = WshShell.run ("C:\winnt\system32\notepad.exe", 0, true)
Response.Write(intReturn)
%>
the browser will never finish opening this page, after a few tries, i got the error message "HTTP 403.9 - Access Forbidden: Too many users are connected". I have to restart my computer to restore the IIS. (even restart the web site from IIS, or uncheck "HTTP keep-alives enabled" won't restore IIS
Can anybody tell me what's going on?
Thanks a lot.
- Next message: Alex K. Angelopoulos [MVP]: "Re: How to make a user close a program when they disconnect a TS Session"
- Previous message: Michael Holzemer: "Re: remote ip configuration"
- Next in thread: Viatcheslav V. Vassiliev: "Re: WScript.Shell"
- Reply: Viatcheslav V. Vassiliev: "Re: WScript.Shell"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|