// 1、打開文件 System.Diagnostics.Process.Start(path); // 2、打開文件夾 System.Diagnostics.Process.Start("explorer.exe", path); ...
直接打開指定的文件 System.Diagnostics.Process.Start v OpenFilePath 直接打開目錄 string v OpenFolderPath 目錄路徑 System.Diagnostics.Process.Start explorer.exe , v OpenFolderPath ...
2019-03-21 10:03 1 10881 推薦指數:
// 1、打開文件 System.Diagnostics.Process.Start(path); // 2、打開文件夾 System.Diagnostics.Process.Start("explorer.exe", path); ...
FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.ShowDialog ...
比如要打開指定的文件夾,而不是彈出對話框 這樣就打開了D盤,和正常打開D盤是一樣的。 ...
直接打開指定的文件 System.Diagnostics.Process.Start(v_OpenFilePath); 直接打開目錄 string v_OpenFolderPath = @"目錄路徑"; System.Diagnostics.Process.Start ...
C#項目打開/保存文件夾/指定類型文件,獲取路徑 轉:http://q1q2q363.xiaoxiang.blog.163.com/blog/static/1106963682011722424325/ 1、打開文件路徑: OpenFileDialog ofd ...
例如:打開“E:\Training”文件夾並選中“20131250.html”文件 System.Diagnostics.Process.Start("Explorer.exe", @"/select,E:\Training\20131250.html"); 一句代碼搞定!!! 擴展 ...
C#實現【選擇文件夾的保存路徑】 private static string OpenFolderAndSelectFile() { string FolderPath = null; FolderBrowserDialog FbDialog = new FolderBrowserDialog ...
1、選擇文件用OpenDialog 2、使用System.Windows.Forms.FolderBrowserDialog選擇文件夾 3、直接打開某路徑下的文件或者文件夾 <C#>_在窗體中打開文件 ...