By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,512 Members | 3,847 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,512 IT Pros & Developers. It's quick & easy.

executing an external program in the server side

P: n/a
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é

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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édric Rossé" wrote:
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é

Nov 18 '05 #2

P: n/a
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

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> a écrit dans le
message de news: 17**********************************@microsoft.com...
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édric Rossé" wrote:
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é

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.