Added in .NET 1.1
A process is a small program that can run on a computer.
It can own resources (memory, device handlers, sockets etc)
A process is usually an executable file that does not share resources.
An application is loaded into its own process.


You can start a process by calling the Start method and passing in the name of the executable file as an argument.

System.Diagnostics.Process notepad_process; 
System.Diagnostics.Process excel_process;

notepad_process = System.Diagnostics.Process.Start("notepad.exe");
excel_process = System.Diagnostics.Process.Start("excel.exe");

System.Threading.Thread.Sleep(10000); //wait for 10 seconds


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext