打开本地某文件并使之处于选中状态

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

 

posted @ 2013-06-25 16:51  菜鸟_飞飞  阅读(231)  评论(0编辑  收藏  举报