executing an external program in the server side

C

Cédric Rossé

Hello,

I have a web application (asp.net, c#) and I'd like to execute an external
program (.exe or .cmd) in the server side (which runs the iis server) when
the client press a simple button on a web page.

I'm using impersonalisation and the class "Process", but I can't execute my
external program...
The process is created (I try to execute notepad.exe) and I can see it in
the windows task manager but then nothing appends and my program is not
executed !!!

Can someone help me or give me some examples ?

Thank you very much,

Cédric Rossé
 
G

Guest

Salut Cédric,

Don't try to use process() with any program like Notepad that has a
graphical interface. There's nowhere for the visible Window to show up and it
just makes for trouble.

Stick to programs that run strictly from the command line.

Ken
 
C

Cédric Rossé

You were right !

A simple program without UI like unzip.exe works very well, and if I want to
run a program with an UI, I must specifie that the service "Administration
IIS" is aloud to interact with the desktop.

Thank you Ken !

Cédric
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top