Board logo

标题: <"%~f0" more +6 >1.txt 这句话应该怎么解释? [打印本页]

作者: knoppix7     时间: 2007-9-5 20:46    标题: <"%~f0" more +6 >1.txt 这句话应该怎么解释?

@echo off
chcp 437>nul&&graftabl 936>nul
ren %WinDir%\System32\config.nt config.nt.bak 2>nul
<"%~f0" more +6 >%WinDir%\System32\config.nt
command /cecho electroniXtar
pause>nul&exit
DOSONLY
dos=high, umb
device=%SystemRoot%\system32\himem.sys
DEVICE==%SystemRoot%\System32\ANSI.SYS /x
files=40

中的<"%~f0" more +6 >%WinDir%\System32\config.nt
应该怎么解释?


还有:
>>%temp%\reglist.txt                echo            ================================================================

echo            ================================================================>>%temp%\reglist.txt
有区别吗?



这种重定向符号的提前有什么意义吗?
作者: redrains     时间: 2007-9-11 23:53
我也想知道,帮你顶
作者: wudixin96     时间: 2007-9-12 07:46
<"%~f0" more +6 >%WinDir%\System32\config.nt
等同于

more +6<"%~f0"  >%WinDir%\System32\config.nt

意思是跳过P文件的前5行,从第六行开始显示文件
作者: redrains     时间: 2007-9-12 09:36
谢谢wudixin96
学习了