I'm trying to test the running of a server side batch file from an asp page.
Page code:
(pingtest.bat is simply "ping google.com > pingtest.log")
I get this error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/pingtest.asp, line 8
Line 8 being the "Shell.Run" bit, I figured the IUSR account didn't have the proper permissions...so I gave it full control, and still get the same error.
The IIS Admin service is set to interact with the desktop.
I'm running IIS6 on Win2K3...any help is appreciated.
So I gave IUSR full NTFS permissions to EVERYTHING in C:\, and no longer get the permission denied error (duh), but the batch file just won't run [:P] ...this seems pretty straightforward stuff. Anyone know the secret?
Dear giantlunarmoth, Try removing the > pingtest.log from the bat file so it will look like that: (pingtest.bat is simply "ping google.com") then test the script, it worked then it means the permissions arn't set corectly, but if didn't try doing the following: 1. Try typing any other command than ping (a simpler) 2. Try running the script on windows 2000, cause the problem might with the security in Win 2K3 as u know WIN2K3 has a very high security, and don't try it on win xp with sp2 cause it will give the same problem.