Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
need help figuring out a batch menu for dos..?
I have to make a batch menu for class. I wrote this down but it isnt working. can someone help me figure out where I am wrong. Thanks in advance
here:
@echo off
:start
cls
echo.
echo **********************************
echo * <<<<< Asif Lalani >>>>> *
echo * *
echo **********************************
echo **********************************
echo * 1 - Open System Info *
echo * 2 - Chk Disk & Defrag *
echo * 3 - Edit Registry *
echo * 4 - Exit *
echo * *
echo ***********************************
echo.
Open/C 1234 /M "Open "
if errorlevel 4 goto exit
if errorlevel 3 goto regedt32
if errorlevel 2 goto both
if errorlevel 1 goto sysinfo
:sysinfo
start "C:\Windows\System32\msinfo32.exe" /launch "msinfo32 "
goto start
:both
start "C:\Windows\System32\chkdsk.exe" /launch "chkdsk "
start "C:\Windows\System32\dfrgui.exe" /launch "dfrgui "
goto start
:regedt32
start "C:\Windows\System32\regedt32.exe" /launch "regedt32"
goto start
:exit
echo End of Program!
pause
exit
1 Answer
- RobertLv 67 years ago
Try (a variation of):
@echo off
:start
cls
echo.
echo **********************************
echo * +++++ Asif Lalani +++++ *
echo * *
echo **********************************
echo **********************************
echo * 1 - Open System Info *
echo * 2 - Check Disk and Defragment *
echo * 3 - Edit Registry *
echo * 4 - Exit *
echo * *
echo ***********************************
echo.
choice /C 1234 /T 18 /D 1 /M "Please choose option as above"
if errorlevel ==4 goto aexit
if errorlevel ==3 goto regedt32
if errorlevel ==2 goto both
if errorlevel ==1 goto sysinfo
goto start
:sysinfo
msinfo32
goto start
:both
chkdsk
dfrgui
goto start
:regedt32
regedt32
goto start
:aexit
echo End of Program!
pause
exit