Windows服务安装批处理命令
Install.bat:
@echo off "%~dp0InstallUtil\InstallUtil.exe" "%~dp0DataSyncService.exe" %SystemRoot%\system32\sc config DataSyncService start= auto %SystemRoot%\system32\sc config DataSyncService type= interact type= own Pause
StartService.bat:
@echo off %SystemRoot%\system32\net start DataSyncService pause
StopService.bat:
@echo off %SystemRoot%\system32\net stop DataSyncService pause
Uninstall.bat:
@echo off "%~dp0InstallUtil\InstallUtil.exe" "%~dp0DataSyncService.exe" /u pause