Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP, VBScript, & IIS

Status
Not open for further replies.

cdm1221

Programmer
Jan 26, 2004
32
0
0
US
I have two test IIS servers. I'm running the exact same asp file on both.

Test.asp code:
---------------------------------------------------------
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>

<%
Dim wShell
Set wShell = CreateObject("WScript.Shell")
wShell.run "cmd.exe /c C:\test.vbs"
Set wShell = Nothing

%>
TEST2 DONE!!
</BODY>
</HTML>
-------------------------------------------------------

test.vbs just creates a folder on the c: drive. The script runs when executed alone.

On one server, the vbs is executed correctly. On the other, sometimes there is a beep and nothing. Then other times it takes a very long time to do nothing. On this same server I am able to use similar code to run the schtasks.exe. But I am not able to run cmd.exe.

The permissions are correctly set for the IUSR account on wscript.exe and cscript.exe. In IIS services, "Allow service to interact with desktop" is selected.

Does anyone have any suggestions how to fix this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top