C#打开文件夹并定位到指定文件

461 阅读1分钟
string filename = "C://Windows//notepad.exe";
Process.Start("explorer", "/select," + filename);  
ProcessStartInfo psi = new ProcessStartInfo("explorer.exe");
string filename = @"C:/Windows/notepad.exe";
psi.Arguments = " /select," + filename;
Process.Start(psi);