Syed Muzakir

Syed Muzakir

  • 1.8k
  • 43
  • 234

pass command line arguments from asp.net web application c#

Aug 14 2019 11:56 AM
i am trying to execute a .exe from asp.net web application. below is the code snippet.
 
Process p = new Process();
p.StartInfo.FileName = @"E:\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe";
p.StartInfo.Arguments = "'"+ con + "' '" + req + "' '" + DBName + "'";
p.Start();
  
but i am not getting expected result. 
in the console application what will be the order of the  args? 

Answers (3)