Discussion forum for all Windows batch related topics.
- Posts: 3
- Joined: 10 Mar 2020 08:25
Code: Select all
echo "Choose the file size"
choice /c ABC /m "Choose Now :)"
I saved this script in the batch file and when tried executing it in a shell , it goes on and on in an endless loop and doesn't allow the user to choose ...
Why is it happening .
I have attached a snap as proof
- image.PNG (39.52 KiB) Viewed 387 times
- Posts: 2347
- Joined: 12 Feb 2011 21:02
- Location: United States (east coast)
You must have named your batch script choice.bat or choice.cmd, so your script is calling itself instead of executing the CHOICE command. Rename your script to something else.
You should never name a script the same as an existing command.