added bat files to install and uninstall DDNSUpdater as Service
This commit is contained in:
1 parent
015755710a
commit
f50ae19805
2 files changed
+22
No files matched your search
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
REM Check if a path parameter was provided
|
||||
IF "%~1"=="" (
|
||||
echo Usage: install_ddns_service.bat ^<path_to_exe^>
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
SET EXE_PATH=%~1
|
||||
|
||||
REM Create the service (auto-start)
|
||||
sc create DDNSUpdaterService binPath= "%EXE_PATH%" start= auto
|
||||
|
||||
REM Start the service
|
||||
sc start DDNSUpdaterService
|
||||
|
||||
echo Service DDNSUpdaterService installed and started.
|
||||
pause
|
||||
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
sc stop DDNSUpdaterService
|
||||
sc delete DDNSUpdaterService
|
||||
echo Service DDNSUpdaterService stopped and deleted.
|
||||
pause
|
||||
Reference in new issue
Block a user