There is a passage like this in the post
====================================================
choice Using this command lets the user input a character, and then run different commands. When using it you should add the /c: parameter; after c: you should write the characters that may be entered in the prompt, with no spaces in between. Its return codes are 1234...
For example: choice /c:dme defrag,mem,end
will display
defrag,mem,end?
For example, the contents of test.bat are as follows:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag should first test the highest error code
if errorlevel 2 goto mem
if errotlevel 1 goto end
===============================================
If the return code order after /c: is 1234......
Then shouldn't it be like this below:
if errorlevel 3 goto end should first test the highest error code
if errorlevel 2 goto mem
if errotlevel 1 goto defrag
====================================================
choice Using this command lets the user input a character, and then run different commands. When using it you should add the /c: parameter; after c: you should write the characters that may be entered in the prompt, with no spaces in between. Its return codes are 1234...
For example: choice /c:dme defrag,mem,end
will display
defrag,mem,end?
For example, the contents of test.bat are as follows:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag should first test the highest error code
if errorlevel 2 goto mem
if errotlevel 1 goto end
===============================================
If the return code order after /c: is 1234......
Then shouldn't it be like this below:
if errorlevel 3 goto end should first test the highest error code
if errorlevel 2 goto mem
if errotlevel 1 goto defrag

