// 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#>_在窗体中打开文件 ...