19 lines
443 B
Batchfile
19 lines
443 B
Batchfile
@echo off
|
|
REM Change the current directory to where the batch script is located
|
|
cd /d %~dp0
|
|
|
|
if exist state_on.txt (
|
|
REM Currently "On", so switch to "Off"
|
|
echo Switching Off
|
|
del state_on.txt
|
|
sc stop LSSASvc
|
|
echo Lightspeed is now OFF.
|
|
) else (
|
|
REM Currently "Off", so switch to "On"
|
|
echo Switching On
|
|
copy /b NUL state_on.txt > nul
|
|
sc start LSSASvc
|
|
echo Lightspeed is now ON.
|
|
)
|
|
pause
|