im currently writing a batch file and i would like to make a toggle menu for choices to execute instead of the common question and answer execution
is there any way to make a list of choices and toggle "run" or "off" for them and hit enter to start
I found a file that seemed to get me in the right direction but i dont know how to make it work with my batch file
the code i found is...
@echo off
set _on=0
:top
cls
if %_on%==0 (set _nlb= &set _nrb= &set _flb=[&set _frb=]) else (set _nlb= [&set _nrb=]&set _flb= &set _frb= )
echo The '_on' flag is currently: %_nlb% On %_nrb% %_flb% Off %_frb%
echo.
echo Press any key to toggle the '_on' flag
pause>nul
if %_on%==0 (set _on=1) else (set _on=0)
goto top
id like it to look like
netusers [run] [off]
netuseradministrator [run] [off]
virus.exe [run] [off]
press enter to initiate selected.
in that type of layout if that makes any sense