Syed Muzakir

Syed Muzakir

  • NA
  • 45
  • 2.7k

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)