Diagnostics.process provides access to local
and remote processes and enables you to start and stop local system processes.
The Process component
is a useful tool for starting, stopping, controlling, and monitoring
applications. Using the Process component,
you can obtain a list of the processes that are running, or you can start a new
process. A Process component
is used to access system processes
If you start any Process
by Diagnostics.process object then to get the error in that process
you have to raise ErrorDataReceived event. Below I have written a simple example.