Found such code on the forum, very classic (displaying colored text in CMD).
But I don't understand how to set the overall background color.
The default foreground and background are black and white.
If I want the background to be green (color 2)
That is: change the black background in the picture to green? Image link address
How to set it? Please help everyone?
But I don't understand how to set the overall background color.
The default foreground and background are black and white.
If I want the background to be green (color 2)
That is: change the black background in the picture to green? Image link address
How to set it? Please help everyone?
@echo off
:: Display colored text in CMD
chcp 437>nul&&graftabl 936>nul
if not exist CONFIG.NT copy %WinDir%\System32\CONFIG.NT CONFIG.NT
@cls
echo DEVICE=%WinDir%\System32\ANSI.SYS /x >%WinDir%\System32\CONFIG.NT
@echo.
command /cecho
command /cecho
jing
[ Last edited by 516526966 on 2008-10-8 at 02:47 ]
