2011年5月8日 星期日

[C#] Process class

Process class provides access to local and remote processes and enables you to start and stop local system processes.

Example:
ProcessStartInfo start_info = new ProcessStartInfo() {
UseShellExecute = true,
WorkingDirectory = working_directory,
FileName = file_name,
Arguments = arguments
};

Process process = new Process() { StartInfo = start_info };
process.Start();

沒有留言:

張貼留言