I need to write a .bat file, which lets a person to choose from several different options.
@echo off
echo how are you doing today?
:meniu
echo Meniu
echo ------------------------
echo 1.Good
echo 2.Bad
choice/C:12 /N
if errorlevel==255 goto error
if errorlevel==1 goto good
if errorlevel==2 goto bad
:good
echo have a nice day
goto end
:bad
echo i hope you'll get better soon
goto end
:end
When the user makes a choice, I want to change the text colour (lets say if choice is good, the text colour will be yellow, if bad - red). How do you change the text colour, starting after the input prompt, without changing the colour of what is already on the console?