中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-07-04 18:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 用批处理如何看小说? 查看 753 回复 2
楼 主 用批处理如何看小说? 发表于 2008-09-06 21:53 ·  中国 江苏 苏州 昆山市 电信
初级用户
★★
积分 133
发帖 75
注册 2008-08-03 01:08
17年会员
UID 122677
性别 男
状态 离线
做个P文件,当我想看小说(txt文件),我就直接把文件拖到P上,就能看小说了,P的背景有些颜色适合眼睛,看小说比较有益。(不过上面所说的是在公司看小说的,用文本看不利于眼睛。)能做到吗?
2 发表于 2008-09-06 22:36 ·  中国 浙江 杭州 电信
初级用户
★★
积分 192
发帖 72
注册 2005-07-31 21:10
20年会员
UID 41234
状态 离线
想法不错

[ Last edited by obsolete on 2008-9-6 at 10:40 PM ]
3 发表于 2008-09-06 22:38 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
颜色自己调整吧
@echo off
color 70
more "%~f1"
pause

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
论坛跳转: