首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-10-21 
C#打开文件夹并定位到指定的文件public void PositionFile(string sFileFullName){if (!System.IO.File.Ex

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

   public void PositionFile(string sFileFullName)        {            if (!System.IO.File.Exists(sFileFullName)) return;            System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("Explorer.exe");            //string file = @"c:/windows/notepad.exe";            psi.Arguments = " /select," + sFileFullName;            System.Diagnostics.Process.Start(psi);        }

热点排行