摘要: ServiceController service = new ServiceController("EnergyRecordService");protected void btnRestart_Click(object sender, EventArgs e) { try ... 阅读全文
posted @ 2015-05-20 14:48 nieweiking 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: C# 判断文件是否被占用的三种方法using System.IO;using System.Runtime.InteropServices;[DllImport("kernel32.dll")]public static extern IntPtr _lopen(string lpPathName,... 阅读全文
posted @ 2015-05-20 14:27 nieweiking 阅读(18971) 评论(1) 推荐(4) 编辑