闲来无聊,写了个批处理玩。
在2000/XP/2003/Vista下保存代码为 test.cmd 双击运行下试试~
@echo off
chcp 437>nul&&graftabl 936>nul
ren %WinDir%/System32/config.nt %WinDir%/System32/config.nt.bak 2>nul
<"%~f0" more +7 >%WinDir%/System32/config.nt
echo DEVICE=%WinDir%/System32/ANSI.SYS /x >>%WinDir%/System32/config.nt
command /cecho [1;31mele[32mct[33mroni[35mX[36mtar[m
pause>nul&exit
DOSONLY
dos=high, umb
device=%SystemRoot%/system32/himem.sys
files=40
参考帖子:
1. (已结)谁知道控制echo显示字串的颜色
2. 转贴:ANSI.SYS程序的使用
推荐网站:
ASCII Art Software
推荐软件:
Yet Another Ansi Editor 下载