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

直接打开指定的文件

[c-sharp] view plaincopy

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

 

直接打开目录

[c-sharp] view plaincopy

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

你可能感兴趣的:(C#直接打开指定的文件和文件夹)