Home
Manage Your Code
Snippet: Executes a process (C#)
Title: Executes a process Language: C#
Description: Executes a process Views: 65
Author: Als James Date Added: 11/11/2008
Copy Code  
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;