摘要: 用代码实现动态控制Service服务运行状态。效果图:代码: #region 启动服务 /// /// 启动服务 /// /// void XServiceStart(string scname) ... 阅读全文
posted @ 2014-02-27 11:25 酷小孩 阅读(1211) 评论(0) 推荐(0)
摘要: 对于C#通过程序来调用cmd命令的操作,网上有很多类似的文章,但很多都不行,竟是漫天的拷贝。我自己测试整理了一下。代码: string str = Console.ReadLine(); System.Diagnostics.Process p = new... 阅读全文
posted @ 2014-02-27 08:50 酷小孩 阅读(156955) 评论(13) 推荐(22)