分类目录

链接

2018 年 1 月
1234567
891011121314
15161718192021
22232425262728
293031  

近期文章

热门标签

新人福利,免费薅羊毛

现在位置:    首页 > .NET > 正文
C#打开文件夹并定位到指定的文件
.NET 暂无评论 阅读(426)
  1. public void PositionFile(string sFileFullName)  
  2.      {  
  3.          if (!System.IO.File.Exists(sFileFullName)) return;  
  4.   
  5.          System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("Explorer.exe");  
  6.          //string file = @"c:/windows/notepad.exe";  
  7.          psi.Arguments = " /select," + sFileFullName;  
  8.          System.Diagnostics.Process.Start(psi);  
  9.      }  

C#打开文件夹并定位到指定的文件

============ 欢迎各位老板打赏~ ===========

本文版权归Bruce's Blog所有,转载引用请完整注明以下信息:
本文作者:Bruce
本文地址:C#打开文件夹并定位到指定的文件 | Bruce's Blog

发表评论

留言无头像?