Skip to content

Instantly share code, notes, and snippets.

@17
17 / srvmgr.bat
Last active December 22, 2022 06:39
installing and removing a user-defined service.
@echo off
setlocal
set ServicePath=HKLM\System\CurrentControlSet\Services
if "%1"=="-i" goto :create
if "%1"=="-d" goto :delete
goto :usage
:create