G
Gaurav
I am trying to call a .bat file from my C# windows form. I've tried:
System.Diagnostics.ProcessStartInfo p = new
System.Diagnostics.ProcessStartInfo(@"C:\gen-pdf.bat") ;
p.UseShellExecute=false;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo=p;
proc.Start();
proc.WaitForExit();
However, the batch file is not executing & the command window closes in a
flash.
Any ideas what I am missing?
System.Diagnostics.ProcessStartInfo p = new
System.Diagnostics.ProcessStartInfo(@"C:\gen-pdf.bat") ;
p.UseShellExecute=false;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo=p;
proc.Start();
proc.WaitForExit();
However, the batch file is not executing & the command window closes in a
flash.
Any ideas what I am missing?