1 Process process = new Process();
2
3 if (File.Exists(filepath))
4 {
5 try
6 {
7 process.StartInfo.FileName = filepath;
8 process.StartInfo.Arguments = argument;
9 process.Start();
10 return process;
11 }
12 catch (Exception e)
13 {
14 // ...
15 }
16 }
17 else
18 {
19 // ... not found
20 }
21
22 return process;