下面展示一些 内联代码片
。
打开文件夹
string ExplorPath = "你的文件夹路径";
if (Directory.Exists(ExplorPath))
System.Diagnostics.Process.Start(ExplorPath);
打开文件夹并选中某个文件
string ExplorPath = "你的文件夹路径";
string FilePath = "你的文件路径,需要带文件后缀";
if (Directory.Exists(ExplorPath) && File.Exists(FilePath))
System.Diagnostics.Process.Start($"Explorer.exe", $@"/select,{FilePath}");
System.Diagnostics.Process.Start(m_ExportSettings.path_csv + "ACIM_EIS_data//" + strBuilder0 + ".csv");
打开文件
string FilePath = "你的文件路径,需要带文件后缀";
if (File.Exists(FilePath))
System.Diagnostics.Process.Start(FilePath);