2 using System
.Diagnostics
;
3 using System
.Threading
;
7 Process proc
= new Process();
10 proc
.StartInfo
.FileName
="wibble";
11 proc
.StartInfo
.Arguments
="arg1 arg2\targ3 \"arg4a arg4b\"";
12 proc
.StartInfo
.UseShellExecute
=false;
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...");
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
);
31 System
.Threading
.Thread
.Sleep(10000);