2008年9月1日

给Windows 服务添加命令行参数(转)

摘要: from http://space.itpub.net/100788/viewspace-310262 1. 首先,给服务的Main方法添加参数,判断如果参数为"-s"则运行服务。 static void Main(string[] args) { // 运行服务 if (args[0].ToLower() == "/s" || args[0].ToLower() == "-s... 阅读全文

posted @ 2008-09-01 17:23 LongSky 阅读(277) 评论(0) 推荐(0) 编辑

导航