use:
Process P = Process.Start(sPhysicalFilePath, Param);
P.WaitForExit();
int result = P.ExitCode;
from MSDN
Related Contents:
- How do I start a process from C#?
- How to get parent process in .NET in managed way
- Executing Batch File in C#
- What is the best choice for .NET inter-process communication? [closed]
- Kill child process when parent process is killed
- How to spawn a process and capture its STDOUT in .NET? [duplicate]
- How do I get output from a command to appear in a control on a Form in real-time?
- .NET Process Monitor
- Delete a file being used by another process
- How do I determine the owner of a process in C#?
- Wait until a process ends
- How can I know if a process is running?
- Hide console window from Process.Start C#
- How to determine programmatically whether a particular process is 32-bit or 64-bit
- Open file with associated application
- How can I get the PID of the parent process of my application
- How to pass parameters to another process in c#
- Visual Studio “Could not copy” …. during build
- How do I kill a process using Vb.NET or C#?
- Redirecting standard input of console application
- How do you de-elevate privileges for a child process
- Run elevated process
- How can a Windows Service start a process when a Timer event is raised?
- Using Process.Start() to start a process as a different user from within a Windows Service
- Async process start and wait for it to finish
- Capturing binary output from Process.StandardOutput
- .NET Events for Process executable start
- sharing memory between two applications
- How to avoid a Win32 exception when accessing Process.MainModule.FileName in C#?
- process.start() arguments
- Error in Process.Start() — The system cannot find the file specified
- How to execute a command in a remote computer?
- How to detect a process start & end using c# in windows?
- C# – WCF – inter-process communication
- .NET – WindowStyle = hidden vs. CreateNoWindow = true?
- Kill some processes by .exe file name
- C# – Making a Process.Start wait until the process has start-up
- Start new process, without being a child of the spawning process
- How can I tell if my process is running as Administrator?
- How to read command line arguments of another process in C#?
- How to read to end process output asynchronously in C#?
- How to asynchronously read the standard output stream and standard error stream at once
- Service starting a process wont show GUI C#
- Capturing process output via OutputDataReceived event
- Process.Close() is not terminating created process,c#
- Make a window topmost using a window handle
- C# get process output while running
- 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#?