mark一下~
打開文件
1.打開文件夾:
System.Diagnostics.Process.Start(FolderPath);-- 打開文件夾 System.Diagnostics.Process.Start(FolderPath+"/"+FileName); -- 打開文件夾中某個文件
2.使用資源管理器打開文件:
System.Diagnostics.Process.Start("Explorer",FolderPath+"\\"+FileName);
--"Explorer.exe",.exe可以省略
3.打開文件夾並選中單個文件:
System.Diagnostics.Process.Start("Explorer", "/select,"+ FolderPath+"\\"+FileName);
注:“/select”參數后面有逗號。
跳轉鏈接
- Process.Start(url); -- 默認瀏覽器
- Process.Start("iexplore.exe", url);--IE瀏覽器