Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.