-
Notifications
You must be signed in to change notification settings - Fork 0
/
cscb.cs
42 lines (34 loc) · 909 Bytes
/
cscb.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Diagnostics;
/*
cscb Ver.1.2.1
同階層にある「_colorOutputer.exe」を利用しています。
*/
public class cscb
{
public static int Main(string[] args)
{
string maF = "_colorOutputer.exe";
string arg = "cs ";
if (args.Length > 0)
{
arg += args[0];
if (args.Length > 1)
{
arg += " " + string.Join(" ", args, 1, args.Length - 1);
}
}
ProcessStartInfo startInfo = new ProcessStartInfo(maF, arg)
{
UseShellExecute = false,
};
using (Process process = new Process())
{
process.EnableRaisingEvents = true;
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();
}
return 0;
}
}