![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-05 19:25 |
48,039 topics / 350,124 posts / today 2 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » How should this line <"%~f0" more +6 >1.txt be explained? |
| Printable Version 746 / 3 |
| Floor1 knoppix7 | Posted 2007-09-05 20:46 |
| 银牌会员 Posts 634 Credits 1,287 From cmd.exe | |
|
@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 [1;31mele[32mct[33mroni[35mX[36mtar[m pause>nul&exit DOSONLY dos=high, umb device=%SystemRoot%\system32\himem.sys DEVICE==%SystemRoot%\System32\ANSI.SYS /x files=40 How should <"%~f0" more +6 >%WinDir%\System32\config.nt be explained? Also: >>%temp%\reglist.txt echo ================================================================ and echo ================================================================>>%temp%\reglist.txt is there any difference? Does putting this kind of redirection symbol in front have any meaning? |
|
| Floor2 redrains | Posted 2007-09-11 23:53 |
| 初级用户 Posts 26 Credits 49 | |
|
I want to know too, helping you bump the thread
|
|
| Floor3 wudixin96 | Posted 2007-09-12 07:46 |
| 银牌会员 Posts 931 Credits 1,928 | |
|
<"%~f0" more +6 >%WinDir%\System32\config.nt
is equivalent to more +6<"%~f0" >%WinDir%\System32\config.nt It means skipping the first 5 lines of the P file and displaying the file starting from the sixth line |
|
| Floor4 redrains | Posted 2007-09-12 09:36 |
| 初级用户 Posts 26 Credits 49 | |
|
Thanks, wudixin96
Learned something |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |