Batch: How to make a menu's questions dif. colors without changing the entire menu color?
P.S. I'm not advertising, it's not even mine, nor do I claim it as mine or have anything to dow ith the game BattleTech itself. I'm only using it as an example. All credits go to their owners, blah blah...
18
answers
|
Answer it!
|
L
The color basics are here:
www.dostips.com/DosCommandIndex.htm#COLOR
L
Try this one - needs getcolorcode linked at the top. I don't use these things but I'm sure they work - CTRL-C/V it.
Function.echo
L
BTW not sure if *.com files are executable on a 64bit OS.
There you will find the missing function getColorCode.
Write your batch:
@echo off &setlocal
call :echo RedYellow TEXT 1
call :echo BlueWhite TEXT 2
call :echo WhiteBlack TEXT 3
pause
del /q "%temp%\color*.com"
goto :eof
:: ~~~~
:echo col txt -- echoes text in a specific color
:: here the rest of the function!
:: ~~~~
:getColorCode col ret -- converts color text to color code
:: here the rest of the function!
![]() |


































