中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-05 19:24
48,039 主题排行 / 350,124 发帖 / 今日 2 篇 / 48,251 会员排行
DOS批处理 & 脚本技术(批处理室) » <"%~f0" more +6 >1.txt 这句话应该怎么解释?
可打印版本  745 / 3
第1楼 knoppix7 发表于 2007-09-05 20:46
银牌会员 发帖 634 积分 1,287 来自 cmd.exe
<"%~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
有区别吗?



这种重定向符号的提前有什么意义吗?
第2楼 redrains 发表于 2007-09-11 23:53
初级用户 发帖 26 积分 49
我也想知道,帮你顶
第3楼 wudixin96 发表于 2007-09-12 07:46
银牌会员 发帖 931 积分 1,928
<"%~f0" more +6 >%WinDir%\System32\config.nt
等同于

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

意思是跳过P文件的前5行,从第六行开始显示文件
第4楼 redrains 发表于 2007-09-12 09:36
初级用户 发帖 26 积分 49
谢谢wudixin96
学习了
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023