日期:2014-05-18 浏览次数:20875 次
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace OpenFileCursor { /// <summary> /// 载入路径打开文件所在文件夹,并将光标移动到文件上 /// </summary> public class OpenFiles { /// <summary> /// 载入路径打开文件所在文件夹 /// </summary> /// <param name="pathString">文件路径</param> public void GetOpenFiles(string pathString) { System.Diagnostics.Process.Start(@"Explorer", "/select," + pathString); } } }