Rupert

::Me(C#,VC,MonoTouch,MonoforAndroid);

导航

上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 108 下一页

2014年2月25日

摘要: 一、获取当前文件的路径1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径,包括文件名。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3. System.IO.Directory.GetCurrentDirectory() 获取应用程序的当前工作目录。这个不一定是程序从中启动的目录啊,有可能程序放在C:\www里,这个函数有可能返回C:\Documents and Settings\ZYB\,或者C: 阅读全文

posted @ 2014-02-25 22:12 ArRan 阅读(468) 评论(0) 推荐(0)

摘要: C#后台执行batProcessStartInfo p = new ProcessStartInfo();p.FileName = "C:\\1.bat";p.WindowStyle = ProcessWindowStyle.Hidden;p.ErrorDialog = false;p.CreateNoWindow = true;Process.Start(p); 阅读全文

posted @ 2014-02-25 22:12 ArRan 阅读(249) 评论(0) 推荐(0)

摘要: #region 检测Office是否安装 /// /// 检测是否安装office /// /// 获得并返回安装的office版本 /// public static bool IsInstallOffice(out string office_Version, out string office_Path) { bool result = false; string str_OfficePath = string.Empty; string str_OfficeVersion = string.Empty; office_Version = string.Empty; office_Pat 阅读全文

posted @ 2014-02-25 20:12 ArRan 阅读(654) 评论(0) 推荐(0)

上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 108 下一页