中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-10 14:58
47,811 topics / 349,897 posts / today 0 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » 【Original】Beyond the color command - Display colored text in CMD (valid for XP/Vista)
Printable Version  19,341 / 70
Floor1 electronixtar Posted 2007-05-04 19:19
铂金会员 Posts 2,672 Credits 7,493
Long time no come to the forum to play, haha~~

Save the code as test.cmd under 2000/XP/2003/Vista and try double-clicking to run it~~


Attachments
1.JPG (65.87 KiB)
YAAE.rar (323.96 KiB)
Floor2 lxmxn Posted 2007-05-04 19:25
版主 Posts 4,938 Credits 11,386
electronixtar hasn't been here for a long time, and as soon as he comes, he brings something fun. Plus points.
Floor3 slore Posted 2007-05-04 19:31
铂金会员 Posts 2,478 Credits 5,212
Floor4 electronixtar Posted 2007-05-04 19:33
铂金会员 Posts 2,672 Credits 7,493
Originally posted by slore at 2007-5-4 19:31:
No effect


Edited the code several times, let's try again~~
Floor5 slore Posted 2007-05-04 20:23
铂金会员 Posts 2,478 Credits 5,212
What needs to be installed? The code is directly saved as a CMD file and runs only with pause
Floor6 electronixtar Posted 2007-05-04 20:29
铂金会员 Posts 2,672 Credits 7,493
Originally posted by slore at 2007-5-4 20:23:
What do you need to install? The code is saved directly as a CMD file and only has pause when run.

It shouldn't be like that. XP comes with it by default.

Check your system32 directory

command.com

config.nt

Paste the content of config.nt here
Floor7 slore Posted 2007-05-04 21:12
铂金会员 Posts 2,478 Credits 5,212
The file config.nt doesn't exist...
Floor8 electronixtar Posted 2007-05-04 21:52
铂金会员 Posts 2,672 Credits 7,493
Hehe, it seems that you've been optimized out.
Floor9 baomaboy Posted 2007-05-04 22:11
银牌会员 Posts 554 Credits 1,513
Not bad, mine is available here. If there's no config.nt, try saving the following few lines of code.
Floor10 voiL Posted 2007-05-04 22:19
中级用户 Posts 189 Credits 384
Haha, there's something new again...

electronixtar always brings us wonderful things...
Floor11 electronixtar Posted 2007-05-04 23:06
铂金会员 Posts 2,672 Credits 7,493
Secretly tell everyone, Chinese ones can also be colorful

[ Last edited by electronixtar on 2007-5-5 at 12:49 AM ]
Floor12 slore Posted 2007-05-05 09:17
铂金会员 Posts 2,478 Credits 5,212
Alas, no effect.

I don't know what other problems there are... That file is there. I initially mistook it for WINDOWS; that one is in SYSTEM32.
Floor13 ccwan Posted 2007-05-05 09:47
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
Great stuff! Thanks for sharing!
Floor14 barton Posted 2007-05-05 11:06
中级用户 Posts 197 Credits 480 From 黄冈
Fun. . .
Floor15 xycoordinate Posted 2007-05-05 11:27
中级用户 Posts 228 Credits 493 From 安徽
Why can it only be displayed once??? The second time it runs, nothing is displayed at all!

config.nt
DOSONLY
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
DEVICE=C:\WINDOWS\System32\ANSI.SYS /x



[ Last edited by xycoordinate on 2007-5-5 at 11:35 AM ]
1 2 3 45  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023