标题: (已结)不想使用PERUSE--为什么>重定向无效
[打印本页]
作者: dato
时间: 2005-9-12 00:46
标题: (已结)不想使用PERUSE--为什么>重定向无效
下面的批处理超过屏幕显示范围,不想使用peruse滚屏,想简单点
xdma.bat > a.txt
edit a.txt
使用edit编辑器来阅读输出。在xp cmd下没问题,可是为什么ms-dos7.1启动盘会不支持重定向了,还是写法有问题,谢谢
@if "%1"=="" goto USG
@rem Setup and Configuration
@%ramd%:\driver\devload %ramd%:\driver\xdma.sys /%1 /%2 /%3 /%4
@goto END
:USG
@echo XDMA switch options are as follows:
@echo /O Enables output overlap.
@echo /L Limits DMA to "low memory" below 640K. /L is REQUIRED to use
@echo UMBPCI or similar drivers whose upper-memory areas cannot do
@echo DMA. When /L is given, XDMA must reside in LOW memory (I-O
@echo command-lists use DMA), or driver loading ABORTS! /L makes
@echo XDMA use its "local buffer" for I-O of data above 640K.
@echo /Mn Specifies the MAXIMUM UltraDMA "mode" to be used by all disks,
@echo where n is a number between 0 and 7, as follows:
@echo 0 = ATA-16, 16 MB/sec. 4 = ATA-66, 66 MB/sec.
@echo 1 = ATA-25, 25 MB/sec. 5 = ATA-100, 100 MB/sec.
@echo 2 = ATA-33, 33 MB/sec. 6 = ATA-133, 133 MB/sec.
@echo 3 = ATA-44, 44 MB/sec. 7 = ATA-166, 166 MB/sec.
@echo Disks designed to a "mode" LESS than the given value will be
@echo limited to their own highest "mode". Every disk's designed
@echo "mode" should be preset by the BIOS, even if the BIOS itself
@echo does no UltraDMA I-O. At present, "mode 7" ATA-166 has not
@echo been implemented, but XDMA can set it, if disks ever use it.
@echo /Q Suppresses the "beep" on output-overlap errors ("quiet" mode).
@echo Most users require only /O to enable output overlap or /L if UMBPCI (or
@echo similar) is also loaded. /M and /Q are for diagnostic work. For all
@echo switches, a dash may replace the slash, and lower-case letters are O.K.
@goto END
:END
Last edited by willsort on 2005-9-12 at 16:46 ]
作者: willsort
时间: 2005-9-12 08:56
Re dato:
在 MSDOS 和 Win9x COMMAND 下是不支持重定向批处理程序的,因为批处理不同于一般的可执行文件,它是被 COMMAND 解释的脚本。
在相应环境下要重定向批处理程序的输出,可以使用以下方式间接实现:
%comspec% /c xdma.bat > a.txt
此时,重定向的是命令解释器 COMMAND.COM 的输出。
最后,谢谢你提供在 NT CMD 下可以重定向批处理程序的信息!
作者: dato
时间: 2005-9-12 16:39
谢谢