C# 打开资源管理器浏览文件或文件夹


 1         /// 
 2         /// 浏览文件
 3         /// 
 4         /// 
 5         public static void ExploreFile(string filePath)
 6         {
 7             Process proc = new Process();
 8             proc.StartInfo.FileName = "explorer";
 9             //打开资源管理器
10             proc.StartInfo.Arguments = @"/select,"+filePath;
11             //选中"notepad.exe"这个程序,即记事本
12             proc.Start();
13         }
14 
15         /// 
16         /// 浏览文件夹
17         /// 
18         /// 
19         public static void ExplorePath(string path)
20         {
21             System.Diagnostics.Process.Start("explorer.exe", path);
22         }

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
Bing Webmaster Portal Back