资源管理器打开文件或文件夹

      public static void BrowserFile(string filepath)
        {
            if (File.Exists(filepath) || Directory.Exists(filepath))
            {
                Process.Start(@"explorer.exe", "/select,\"" + filepath + "\"");
            }
        }

 

posted on 2014-04-22 16:38  harrell  阅读(294)  评论(0编辑  收藏  举报