当前位置:K88软件开发文章中心编程语言.NET.NET01 → 文章内容

使用C#开发批量ACCESS数据库压缩程序

减小字体 增大字体 作者:佚名  来源:翔宇亭IT乐园  发布时间:2018-12-31 11:50:42

六、Process启动Exporler.exe打开指定物理地址文件夹

C#代码
  1. #region 打开目录地址   
  2. /// <summary>   
  3. /// 打开目录地址   
  4. /// </summary>   
  5. /// <param name="dirAddress">需要打开的文件夹目录物理地址</param>   
  6. private void openDirectoryAddress(string dirAddress)   
  7. {   
  8.     DirectoryInfo dirFolder = new DirectoryInfo(dirAddress);   
  9.     if (dirFolder.Exists)   
  10.     {   
  11.         System.Diagnostics.Process.Start("explorer.exe", dirAddress);   
  12.     }   
  13.     else  
  14.     {   
  15.         MessageBox.Show("未找到需要打开的目录地址""错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);   
  16.     }   
  17. }  
  18. #endregion 

上一页  [1] [2] 


使用C#开发批量ACCESS数据库压缩程序