C# Windows 服务执行命令

%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe D:\MVC\WindowsService1\WindowsService1\bin\Debug\WindowsService1.exe
Net Start ServiceTest
sc config ServiceTest start= auto

 

红色标记的为地址

posted @ 2016-06-20 17:31  123困兽  阅读(358)  评论(0编辑  收藏  举报