* TextControl.cs: Make this operation undoable.
[mono-project.git] / mono / tests / process1.cs
blobaf6f364f2490467e37917c8961f4ac7d9dd74260
1 using System;
2 using System.Diagnostics;
3 using System.Threading;
5 class Modules {
6 static void Run() {
7 Process proc = new Process();
8 bool ret;
10 proc.StartInfo.FileName="wibble";
11 proc.StartInfo.Arguments="arg1 arg2\targ3 \"arg4a arg4b\"";
12 proc.StartInfo.UseShellExecute=false;
13 ret=proc.Start();
15 Console.WriteLine("Start returns " + ret);
16 Console.WriteLine("Process is " + proc.ToString());
17 Console.WriteLine("Pid is " + proc.Id);
18 Console.WriteLine("Handle is " + proc.Handle);
19 Console.WriteLine("HandleCount is " + proc.HandleCount);
21 Console.WriteLine("Waiting for exit...");
22 proc.WaitForExit();
23 Console.WriteLine("Wait returned");
24 Console.WriteLine("Exit code is " + proc.ExitCode);
25 Console.WriteLine("Process started at " + proc.StartTime);
26 Console.WriteLine("Process ended at " + proc.ExitTime);
29 static void Main() {
30 Run();
31 System.Threading.Thread.Sleep(10000);
32 Run();