Nikhil Bichewar

Nikhil Bichewar

  • NA
  • 250
  • 25.9k

execute .exe from asp.net application on any event and IIS7.

Jan 31 2017 9:46 AM
Hi All,
 
 
I have developed one web application so ,on button click i want to execute one exe which is also developed in c#.
Its working fine on local machine  but not on IIS7 server.
 
Below is code for execute .exe on button click().
 
string str = @"C:\Windows\NOTEPAD.exe";
Process process = new Process();
process.StartInfo.FileName = str;
process.Start();
 
 
Thanks and Regrds 
Nikhil

Answers (2)