Align libgc vcxproj with makefile.
[mono.git] / mono / tests / process1.cs
1 using System;
2 using System.Diagnostics;
3 using System.Threading;
4
5 class Modules {
6         static void Run() {
7                 Process proc = new Process();
8                 bool ret;
9
10                 proc.StartInfo.FileName="wibble";
11                 proc.StartInfo.Arguments="arg1    arg2\targ3 \"arg4a arg4b\"";
12                 proc.StartInfo.UseShellExecute=false;
13                 ret=proc.Start();
14
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);
20
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);
27         }
28
29         static void Main() {
30                 Run();
31                 System.Threading.Thread.Sleep(10000);
32                 Run();
33         }
34 }
35