executing shell commands in asp

M

mlay

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
 
R

Ray at

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
 
A

Aaron Bertrand [MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top