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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Robocopy: Copy files from old server to new one, without overwriting any files at the destination?||2||72|
|Windows Batch File - pass parameter with embedded space||7||44|
|SQL Server Database Inventory||7||28|
|File permissions, Users/Groups, .bat files and Task Scheduler / Windows 10 Pro||2||39|
Join the community of 500,000 technology professionals and ask your questions.