弄上那么多代码,看得都晕
我上传一文件,比echo命令强N多倍
http://upload.cn-dos.net/img/1734.rar
命令用法
EchoX 2.5 - (C) 2004-2006 by Bill Stewart (
bstewart@iname.com)
Usage: echox ] ] message
or: echox -l
-c Specifies a color (01-FE).
-f, -b Specifies the foreground and background colors (0 through F).
-n Do not skip to the next line.
-w Specifies the message should be 'width' characters wide.
-r Right-aligns the message with respect to the specified width.
-e Centers the message with respect to the specified width.
message The text to be displayed.
-l Lists available colors in a table.
When specifying colors, the foreground color cannot match the background color.
If you specify -c, you cannot specify -f or -b (and vice versa).
The message can contain the following escape sequences: ~n (return), ~r (line
feed), and ~t (tab). To display a literal '~' if it's followed by n, r, or t,
use '~~'. Escape sequences are ignored if -w is specified.
——————————————————————————————————————————
首先,我们可以使用-l 参数来看看它的颜色编码,可以在命令行键入"echox -l"。
可以看出和上面的 ColorX 的颜色编码是一样的。
-c 参数指定字体颜色和背景颜色。比如 echox -c ce "www.baidu.com" 可以在红色背景上显示黄色的
www.baidu.com。
-f、-b 参数分别指定字体颜色和背景颜色。
-n 参数表示不换行的意思,在for循环里面比较常用。
-w 参数表示指定的字符在命令行显示的宽度,后面直接跟一个表示宽度的数字就可以了。
-r -e 参数分别表示居右,居中显示,缺省是居左显示的。
举个例子: for /l %i in (9,-1,0) do @echox -c %i1 -n -r -w 30 "Www.Baidu.coM"
有兴趣的朋友可以多研究一下,可以做出很多好玩的东东。 =_+
There are so many codes, it's dizzying to look at.
I uploaded a file, which is much better than the echo command.
http://upload.cn-dos.net/img/1734.rar
Command usage
EchoX 2.5 - (C) 2004-2006 by Bill Stewart (
bstewart@iname.com)
Usage: echox ] ] message
or: echox -l
-c Specifies a color (01-FE).
-f, -b Specifies the foreground and background colors (0 through F).
-n Do not skip to the next line.
-w Specifies the message should be 'width' characters wide.
-r Right-aligns the message with respect to the specified width.
-e Centers the message with respect to the specified width.
message The text to be displayed.
-l Lists available colors in a table.
When specifying colors, the foreground color cannot match the background color.
If you specify -c, you cannot specify -f or -b (and vice versa).
The message can contain the following escape sequences: ~n (return), ~r (line
feed), and ~t (tab). To display a literal '~' if it's followed by n, r, or t,
use '~~'. Escape sequences are ignored if -w is specified.
——————————————————————————————————————————
First of all, we can use the -l parameter to see its color coding, and we can type "echox -l" in the command line.
It can be seen that it is the same as the color coding of ColorX above.
The -c parameter specifies the font color and background color. For example, echox -c ce "www.baidu.com" can display the
www.baidu.com in yellow on a red background.
The -f and -b parameters specify the font color and background color respectively.
The -n parameter means not to wrap, which is more commonly used in for loops.
The -w parameter means that the specified character is displayed in the width of the command line, and you can directly follow a number representing the width.
The -r and -e parameters respectively mean right alignment and center alignment, and the default is left alignment.
For example: for /l %i in (9,-1,0) do @echox -c %i1 -n -r -w 30 "Www.Baidu.coM"
Friends who are interested can study it more, and can make many interesting things. =_+