WScript.Shell problem

aliweb

Perch
Hi

I have Windows 2003 Server. On it there is an ASP page which calls Notepad using Windows Scripting Shell.

Code:
Set WshShell = CreateObject("Wscript.Shell")
WshShell.run("c:\windows\notepad.exe")

This gives me the following error


Microsoft VBScript runtime error '800a0046'

Permission denied /cms/scripttest.asp, line 2


Even if I use some other program to run other than Notepad then I get the same error.

I have given permissions to IUSR account on Notepad.exe and Windows folder but still I get this error. Any idea how to resolve it?
 
Hi

I have Windows 2003 Server. On it there is an ASP page which calls Notepad using Windows Scripting Shell.

Code:
Set WshShell = CreateObject("Wscript.Shell")
WshShell.run("c:\windows\notepad.exe")

This gives me the following error


Microsoft VBScript runtime error '800a0046'

Permission denied /cms/scripttest.asp, line 2


Even if I use some other program to run other than Notepad then I get the same error.

I have given permissions to IUSR account on Notepad.exe and Windows folder but still I get this error. Any idea how to resolve it?

Did you ever resolve this problem?

I am having the same exact problem and have no clue what it could be.

Thx
jonpfl
 
If my memory serves me right, I was able to do it by adding that user in administrator group and giving full file permissions too in SECURITY tab when you go in folder properties.
But this is risky so I probably didn't use this technique for long I guess.
 
Back
Top