Batch Label should be defined as
:desktop
as opposed to
desktop:
and syntax for taking input from user is
set /p desktopoptions= "Enter choice"
^Note the space after equals sign.
while your code
p /set desktopoptions=
and there’s no such command named ‘quit’. I’d recommend
if %desktopoptions%==1 goto serverstart
if %desktopoptions%==2 goto exit
:exit
cls
echo exiting..
pause
exit
8
solved Batch program not starting on Windows 10 [closed]