Windows服務安裝批處理命令

Install.bat:ide

@echo off
"%~dp0InstallUtil\InstallUtil.exe" "%~dp0DataSyncService.exe"
%SystemRoot%\system32\sc config DataSyncService start= auto
%SystemRoot%\system32\sc config DataSyncService type= interact type= own
Pause
View Code

StartService.bat:spa

@echo off
%SystemRoot%\system32\net start DataSyncService
pause
View Code

StopService.bat:3d

@echo off
%SystemRoot%\system32\net stop DataSyncService
pause
View Code

Uninstall.bat:code

@echo off
"%~dp0InstallUtil\InstallUtil.exe" "%~dp0DataSyncService.exe" /u
pause
View Code
相關文章
相關標籤/搜索