System.Diagnostics.Process P = null;
try {
P = new System.Diagnostics.Process();
string WorkingDirectory = "C:\\docs";
//P.StartInfo.RedirectStandardOutput = true;
P.StartInfo.CreateNoWindow = true;
P.StartInfo.WorkingDirectory = WorkingDirectory;
P.StartInfo.FileName = "C:\\tmp.bat";
//P.StartInfo.Arguments = ""; //P.EnableRaisingEvents = true;
P.StartInfo.UseShellExecute = false;
P.Start();
}
catch(Exception er)
{
string sMsg = "Error in starting process " + er.GetType() + er.Message;
}