3
Answers

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

Syed Muzakir

Syed Muzakir

5y
1.3k
1
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)