中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-09 16:00
47,811 主题排行 / 349,896 发帖 / 今日 1 篇 / 48,254 会员排行
DOS批处理 & 脚本技术(批处理室) » 用批处理如何看小说?
可打印版本  796 / 2
第1楼 slw218856 发表于 2008-09-06 21:53
初级用户 发帖 75 积分 133
用批处理如何看小说?
做个P文件,当我想看小说(txt文件),我就直接把文件拖到P上,就能看小说了,P的背景有些颜色适合眼睛,看小说比较有益。(不过上面所说的是在公司看小说的,用文本看不利于眼睛。)能做到吗?
第2楼 obsolete 发表于 2008-09-06 22:36
初级用户 发帖 72 积分 192
想法不错

[ Last edited by obsolete on 2008-9-6 at 10:40 PM ]
第3楼 HAT 发表于 2008-09-06 22:38
版主 发帖 5,017 积分 9,023
颜色自己调整吧

C:\Test>color /?
Sets the default console foreground and background colors.

COLOR

attr Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White


If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

Example: "COLOR fc" produces light red on bright white
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023