现在的位置: 首页 > 综合 > 正文

C#直接打开指定的文件和文件夹

2017年11月06日 ⁄ 综合 ⁄ 共 219字 ⁄ 字号 评论关闭

直接打开指定的文件

[c-sharp] view
plain
copy

  1. System.Diagnostics.Process.Start(v_OpenFilePath);   

 

直接打开目录

[c-sharp] view
plain
copy

  1. string v_OpenFolderPath = @"目录路径"; System.Diagnostics.Process.Start("explorer.exe", v_OpenFolderPath);   

抱歉!评论已关闭.