c#问题,帮我解释一下下面的代码

来源:百度知道 编辑:UC知道 时间:2024/06/15 20:09:56
System.Diagnostics.Process proc;
proc = System.Diagnostics.Process.Start(info);
System.Diagnostics.ProcessStartInfo info2 = new System.Diagnostics.ProcessStartInfo();
info2.FileName = "notepad.exe";
//info2.Arguments = "属性中的value.doc";
info.WorkingDirectory = "c:\\资料\\电脑与网络\\C#";
System.Diagnostics.Process proc2;
proc2 = System.Diagnostics.Process.Start(info2);

try
{
System.Diagnostics.Process proc;
proc = System.Diagnostics.Process.Start(@"c:\\资料\\电脑与网络\\C#");
}
catch (System.ComponentModel.Win32Exception)
{

MessageBox.Show("找不到路径");
}

启动一个进程啊,notepad.exe就是记事本
info.WorkingDirectory = "c:\\资料\\电脑与网络\\C#";是进程的路径
没啥好解释的吧