Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
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.