China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-10 04:30
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] When using ANSI.SYS, how to set the background color of the CMD window? View 2,556 Replies 17
Floor 16 Posted 2008-10-16 01:26 ·  中国 山东 淄博 电信
初级用户
Credits 63
Posts 37
Joined 2008-08-09 11:46
18-year member
UID 123026
Gender Male
Status Offline
Originally posted by 516526966 at 2008-10-16 01:23 AM:

Test results under Windows 2003
Why is mine like this.

[ Last edited by 516526966 on 2008-10-16 at 01:25 ]



Test results under xp-sp2 are as follows:
Attachments
2008-10-16_010538.jpg
Floor 17 Posted 2008-10-16 09:59 ·  中国 福建 三明 电信
中级用户
★★
Credits 458
Posts 211
Joined 2006-07-26 19:42
20-year member
UID 59307
Status Offline
Let's look at the third and fourth floors.

In case of the situation like yours, combine the third and fourth floors together, I think it will work.

The following is the red part.

color 2a
...
command /cecho ;42m 登鹳雀楼



You set it once, add a ;42 it should be ok, if not , you have to add it line by line


Handle the problem not too blindly, each floor has usable information
┌───────┐
├→学习→实践→┤
└───────┘
Floor 18 Posted 2008-10-21 10:11 ·  中国 山东 淄博 电信
初级用户
Credits 63
Posts 37
Joined 2008-08-09 11:46
18-year member
UID 123026
Gender Male
Status Offline
I understand what you mean? But I've tried all these, and it doesn't work under win2003.
I had to ask for help as a last resort? Thank you.
Forum Jump: