Csharp/C Sharp/Development Class/Start Process
Версия от 15:31, 26 мая 2010; (обсуждение)
Starting a new process: open wordpad
// Starting a new process.
using System;
using System.Diagnostics;
public class StartProcess {
public static void Main() {
Process newProc = Process.Start("wordpad.exe");
Console.WriteLine("New process started.");
newProc.WaitForExit();
newProc.Close(); // free resources
Console.WriteLine("New process ended.");
}
}