Board logo

标题: 用批处理如何看小说? [打印本页]

作者: slw218856     时间: 2008-9-6 21:53    标题: 用批处理如何看小说?

做个P文件,当我想看小说(txt文件),我就直接把文件拖到P上,就能看小说了,P的背景有些颜色适合眼睛,看小说比较有益。(不过上面所说的是在公司看小说的,用文本看不利于眼睛。)能做到吗?

作者: obsolete     时间: 2008-9-6 22:36
想法不错 [ Last edited by obsolete on 2008-9-6 at 10:40 PM ]

作者: HAT     时间: 2008-9-6 22:38
颜色自己调整吧
@echo off
color 70
more "%~f1"
pause
C:\Test>color /? Sets the default console foreground and background colors. COLOR [attr] 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