public static void RunProcess(string FileName, string Arguments, ProcessWindowStyle WindowStyle, bool WaitforExit)
{
MessageBox.Show("Runnig the process :- File name- " + FileName.ToString() + "argumetns- " + Arguments.ToString() + "windowStyle- " + WindowStyle.ToString() + "WaitForExit- " + WaitforExit.ToString());
Process MyProcess = new Process();
MyProcess.StartInfo.FileName = FileName;
MyProcess.StartInfo.Arguments = Arguments;
MyProcess.StartInfo.WindowStyle = WindowStyle;
MyProcess.Start();
if (WaitforExit)
MyProcess.WaitForExit();
}
Here Arguments are having some spaces too.!!