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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Running WSh from ASP Page

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
am trying to run a vbs file from an ASP page.

The line with the .Run throws the error "Permission Denied"

Here is the code:
Set objWshShell = Server.CreateObject("WScript.Shell")
strWshCommand = "d:\vbs\main.vbs 0 " & intUserId
Response.Write strWshCommand
objWshShell.Run strWshCommand <-- Error Thrown Here.
Set objWshShell = Nothing

The output from the response.Write is:
d:\vbs\main.vbs 0 15

I have given the IUSR account full control over the d:\vbs directory and have even tried adding the IUSR account to the admin group.

Any ideas? cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
Never mind. Figured it out cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top