Executing an exe file or creating a process
This code shows how to execute an exe file
ProcessStartInfo psInfo = new ProcessStartInfo(file, arguments);
psInfo.RedirectStandardOutput = true;
// To redirect, we must not use shell execute.
psInfo.UseShellExecute = false;
// Create and execute the process.
Process objProcess = Process.Start(psInfo);
objProcess.Start();
objProcess.WaitForExit(3000);