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
红色标记的为地址
%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
红色标记的为地址