The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
It continues 9 through 1, but doesn't match so goes to :end
choice /C 123456780 /N /M "Type a number or close the window to cancel:" if ERRORLEVEL 9 ( do stuff goto end ) if ERRORLEVEL 8 ( do stuff goto end ) :end
What I found is that I can echo %errorlevel% and get the proper value returned from choice, but if I try to do anything else it becomes null or 0, not sure.
if errorlevel 1 goto 1 if errorlevel 2 goto 2 1: stuff goto end 2: stuff goto end :end
Join the community of 500,000 technology professionals and ask your questions.