string batpath = " Batch file path ";
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "batch file name";
proc.StartInfo.WorkingDirectory = batpath;
proc.StartInfo.UseShellExecute = true;
proc.Start();
proc.Close();
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "batch file name";
proc.StartInfo.WorkingDirectory = batpath;
proc.StartInfo.UseShellExecute = true;
proc.Start();
proc.Close();
No comments:
Post a Comment