Description
In code/modules/services.bat, lines 130–144 assign service names using the pattern:
if %N%==1 (set serviceName="lfsvc")
if %N%==2 (set serviceName="MapsBroker")
...
In CMD, set serviceName="lfsvc" stores the literal string "lfsvc" including the double-quote characters as part of the value. The correct idiomatic pattern to avoid this is:
if %N%==1 (set "serviceName=lfsvc")
Steps to reproduce
- Run
services.bat as Administrator on any Windows 10/11 machine.
- Pick any service from the menu (e.g., option
[1] Location Foundation Service).
- Note its current state displayed in the menu (
[Disabled] in green or [Enabled] in red).
Expected behavior
Disable path (expected: Enabled → Disabled):
- If the service shows
[Enabled], select its number and press Enter.
- The menu should refresh with the service now showing
[Disabled].
- If it does → disable path works.
Actual behavior
Enable path (expected: Disabled → Enabled):
- Now the service shows
[Disabled]. Select its number again and press Enter.
- The menu should refresh with the service now showing
[Enabled].
- If it does → enable path works, bug does not manifest.
- If it stays
[Disabled] → enable path is broken, bug confirmed.
OS version
Windows 11
Confirmation
Description
In
code/modules/services.bat, lines 130–144 assign service names using the pattern:if %N%==1 (set serviceName="lfsvc")
if %N%==2 (set serviceName="MapsBroker")
...
In CMD, set serviceName="lfsvc" stores the literal string "lfsvc" including the double-quote characters as part of the value. The correct idiomatic pattern to avoid this is:
if %N%==1 (set "serviceName=lfsvc")
Steps to reproduce
services.batas Administrator on any Windows 10/11 machine.[1]Location Foundation Service).[Disabled]in green or[Enabled]in red).Expected behavior
Disable path (expected: Enabled → Disabled):
[Enabled], select its number and press Enter.[Disabled].Actual behavior
Enable path (expected: Disabled → Enabled):
[Disabled]. Select its number again and press Enter.[Enabled].[Disabled]→ enable path is broken, bug confirmed.OS version
Windows 11
Confirmation