您的位置:首页 > 编程语言 > C#

C#如何打开一个文件夹并定位到某个文件

2010-11-04 10:00 393 查看
//explorer /select,"c:/windows/notepad.exe"

  ProcessStartInfo psi = new ProcessStartInfo("Explorer.exe");
  string file = @"c:/windows/notepad.exe";
  psi.Arguments = " /select," + file;
  Process.Start(psi);

 

原文:http://topic.csdn.net/u/20101104/09/02b12763-7dfa-4a2e-8d69-b93048956bee.html?35797
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: