Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling console application from asp.net

I try to call console appliction from asp.net when i put breakpoint in console app why it can't stop there.How can i call console application?

 var proc = Process.Start("D:\\Edefter\\EFaturaConsoleTxtParser\\bin\\Debug\\EFaturaConsoleTxtParser.exe", "/arg1 /arg2");
                proc.WaitForExit();
like image 830
altandogan Avatar asked Dec 08 '22 11:12

altandogan


1 Answers

I'm not sure about this but anyway you can try

  ProcessStartInfo startinfo = new ProcessStartInfo();   
    startinfo.FileName =@"D:\\Edefter\\EFaturaConsoleTxtParser\\bin\\Debug\\EFaturaConsoleTxtParser.exe";   
    startinfo.CreateNoWindow = true;   
    startinfo.UseShellExecute = true; 
    Process myProcess = Process.Start(startinfo);
    myProcess.Start();
like image 123
Vinayak Pahalwan Avatar answered Dec 11 '22 09:12

Vinayak Pahalwan