469,915 Members | 2,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

executing shell commands in asp

Hi,

I'm trying to execute a Windows command in ASP. For example, this is a
snippet of what I have right now:
....
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("notepad", 1, true)
Set WshShell = Nothing
....

The strange thing is that notepad.exe actually appears under the list of
processes in Task Manager, but its window does not show up on the server's
desktop; the client's browser just sort of hangs. I'm led to believe that
this has something to do with IIS permissions, but I'm not certain. If
anyone could help out, I'd really appreciate it. Thanks in advance.

Meng
Jul 19 '05 #1
2 19809
What you're failing to realize is that the notepad.exe process is launching
under the IUSR's processes, and the IUSR isn't logged onto the machine with
a desktop. You won't see it on the server's desktop.

Ray at home

"mlay" <ml**@usc.edu> wrote in message news:bo**********@gist.usc.edu...
Hi,

I'm trying to execute a Windows command in ASP. For example, this is a
snippet of what I have right now:
...
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("notepad", 1, true)
Set WshShell = Nothing
...

The strange thing is that notepad.exe actually appears under the list of
processes in Task Manager, but its window does not show up on the server's
desktop; the client's browser just sort of hangs. I'm led to believe that
this has something to do with IIS permissions, but I'm not certain. If
anyone could help out, I'd really appreciate it. Thanks in advance.

Meng

Jul 19 '05 #2
Why would you want to execute an exe with a GUI from ASP? Who's going to
sit at the server waiting to interact with a GUI?

"mlay" <ml**@usc.edu> wrote in message news:bo**********@gist.usc.edu...
Hi,

I'm trying to execute a Windows command in ASP. For example, this is a
snippet of what I have right now:
...
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("notepad", 1, true)
Set WshShell = Nothing
...

The strange thing is that notepad.exe actually appears under the list of
processes in Task Manager, but its window does not show up on the server's
desktop; the client's browser just sort of hangs. I'm led to believe that
this has something to do with IIS permissions, but I'm not certain. If
anyone could help out, I'd really appreciate it. Thanks in advance.

Meng

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Falk Schneider | last post: by
6 posts views Thread by twsnnva | last post: by
8 posts views Thread by Siemel Naran | last post: by
2 posts views Thread by Mark | last post: by
3 posts views Thread by Ara Kooser | last post: by
10 posts views Thread by Kentor | last post: by
1 post views Thread by Riccardo Maria Bianchi | last post: by
5 posts views Thread by inetquestion | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.