473,508 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 20469
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10893
by: Falk Schneider | last post by:
I wrote a PHP shell script under Linux which puts all existing PS-Files within a directory into a list and should then start a single Ghostview window for each file. Sounds simple, but it's not: ...
6
5843
by: twsnnva | last post by:
Could anyone give me an example (code) of a simple program with a button that when clicked executes a linux shell or windows dos command like "ifconfig" or "ipconfig" and prints the output...
8
1333
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
0
1446
by: Bruceneedshelp | last post by:
My application starts logging and executes shell commands on startup. The application runs fine, except when it executes at boot time. In other words when I make it a "startup" application on my...
2
1813
by: Mark | last post by:
hi, i've written a c++ program that converts one file type to another via two arguments (the input and output filenames). i want to execute this on my server, using something like ...
3
1669
by: Ara Kooser | last post by:
Hello all, I hope I am posting this correctly. I am running Python 2.4.2 on Slackware 11.0 using IDLE. I am in the process of learning python so I am writing a text adventure game using...
10
1959
by: Kentor | last post by:
I know I can use the system function to execute commands, but I need to pass parameters to it and it doesn't want to accept them... is there a way to do system("mv %s temp123", myvar) ? or maybe...
1
4004
by: Riccardo Maria Bianchi | last post by:
Hello! :) I'm trying to run shell commands both with os.system() and subprocess.Popen() class. But I can't run aliases or function defined in my .bashrc file, like in the login interactive...
1
3541
by: raocheng | last post by:
Please see the following code. Suppose I have many shell commands to be executed. And I don't want to fork a sub shell for each command(eg: status,output = commands.getstatusoutput(cmd)) because...
5
5066
by: inetquestion | last post by:
I am looking for a web interface for shell commands or shell scripts. Does anyone know of any exexisting php scripts which would solve this requirement? PHP form accepts input from a user, then...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.