I want to make a batch processing to achieve that when running, it requires entering a string, and then turns to the corresponding branch according to this string. (It must be entered during running, and the form of adding parameters at the beginning cannot be used). How should I do it?
I started to want to use environment variables, and use a batch processing enhancement program INPUT to accept keyboard input, but it didn't work. My program is:
cls
input "Please Input:" FN /s rem: This sentence is to accept input and assign it to "FN"
if FN=="aaa" goto a
if FN=="bbb" goto b
goto c
:a
echo This is a
goto c
:b
echo this is b
goto c
:c
End!!!
Later, I found that the batch processing enhancement command INPUT didn't work.
Dear experts, please help.
I started to want to use environment variables, and use a batch processing enhancement program INPUT to accept keyboard input, but it didn't work. My program is:
cls
input "Please Input:" FN /s rem: This sentence is to accept input and assign it to "FN"
if FN=="aaa" goto a
if FN=="bbb" goto b
goto c
:a
echo This is a
goto c
:b
echo this is b
goto c
:c
End!!!
Later, I found that the batch processing enhancement command INPUT didn't work.
Dear experts, please help.




