ChrisQuick
Programmer
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
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