我有从C# 继启动过程中的一些异常代码系统无法找到文件过程中指定的异常启动
Process myProcess = new Process();
try
{
myProcess.StartInfo.UseShellExecute = true;
myProcess.StartInfo.FileName = "c:\\windows\\system32\\notepad.exe C:\\Users\\Karthick\\AppData\\Local\\Temp\\5aau1orm.txt";
myProcess.StartInfo.CreateNoWindow = false;
myProcess.Start();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
,有时我得到的异常“的文件名,目录名,或卷标语法不正确”如果useShellExecute设置为false
任何想法,这是为什么不出来正确
谢谢。这工作正好。我只想要记事本打开应用程序 – Karthick 2011-02-07 01:28:28