2020-10-29 01:41:01 +00:00
|
|
|
|
|
|
|
set service_name="BAPSicle"
|
|
|
|
|
2020-10-29 19:24:00 +00:00
|
|
|
: We can't 'nssm stop because' we're about to delete it.
|
|
|
|
: The file will remain open, so you'll get access denied.
|
|
|
|
net stop %service_name%
|
|
|
|
sc delete %service_name%
|
|
|
|
|
|
|
|
: We cd out of the folder, just in case we're about to delete
|
|
|
|
: out PWD.
|
|
|
|
cd \
|
|
|
|
rmdir "C:\Program Files\BAPSicle\" /q /s
|
2020-10-29 01:41:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
PAUSE
|