2012年6月28日
摘要: 代码如下:注意:先要添加引用System.ServiceProcessclass Program { static void Main(string[] args) { Console.WriteLine(ServiceIsExisted("MSSQLSERVER")); } public static bool ServiceIsExisted(string serviceName) { ServiceController[] services = ServiceController.GetServices(); foreach (ServiceController s 阅读全文
posted @ 2012-06-28 15:49 aparche 阅读(318) 评论(0) 推荐(0)
摘要: 由于没有创建文件的权限,需要在AndroidManifest.xml中添加:<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> 阅读全文
posted @ 2012-06-28 00:39 aparche 阅读(467) 评论(0) 推荐(0)