executing an external program in the server side

  • Thread starter Thread starter Cédric Rossé
  • Start date Start date
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é
 
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
 
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
 
Back
Top