新建服务命令
sc create WinUpReportInfoService binPath= "F:\WinServiceForUpReport.exe TYPE= "own" start= "auto" TAG= "no" DisplayName= "WinUpReportInfoService"
SC description WinUpReportInfoService 服务描述pause
删除服务命令
sc stop WinUpReportInfoService
sc delete WinUpReportInfoService
pause
启动服务命令并设置为自动
net start WinUpReportInfoService
sc config WinUpReportInfoService start= auto
pause