use:
Process P = Process.Start(sPhysicalFilePath, Param);
P.WaitForExit();
int result = P.ExitCode;
from MSDN
More Related Contents:
- How to determine programmatically whether a particular process is 32-bit or 64-bit
- How to avoid a Win32 exception when accessing Process.MainModule.FileName in C#?
- How can I get the PID of the parent process of my application
- How to pass parameters to another process in c#
- process.start() arguments
- How to read command line arguments of another process in C#?
- Get Live output from Process
- How to asynchronously read the standard output stream and standard error stream at once
- Why is this process crashing as soon as it is launched?
- How can I tell if my process is running as Administrator?
- Get window state of another process
- How to execute process on remote machine, in C#
- Capturing process output via OutputDataReceived event
- Foo.cmd won’t output lines in process (on website)
- Process.Close() is not terminating created process,c#
- How to start Process hidden?
- C# Process.MainWindowHandle always returns IntPtr Zero
- Error in Process.Start() — The system cannot find the file specified
- C# – WCF – inter-process communication
- How to create a Process that outlives its parent
- How to get Command Line info for a process in PowerShell or C#
- How to use [DllImport(“”)] in C#?
- Windows Forms application like Google Chrome with multiple processes
- C# Only part of a ReadProcessMemory or WriteProcessMemory request was completed during Process.Kill()
- Access denied while getting process path
- Image file copy, is being used by another process
- How to I get the window handle by giving the process name that is running?
- Monitor child processes of a process
- To run cmd as administrator along with command?
- Why does StandardOutput.Read() block when StartInfo.RedirectStandardInput is set to true?