联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off echo 第1行=^1>1.txt echo 第2行=^2>>1.txt echo 第10行=1^0>>1.txt
@echo off >1.txt echo 第1行=1 >>1.txt echo 第2行=2 >>1.txt echo 第3行=3 >>1.txt echo 第4行=4 >>1.txt echo 第5行=5 >>1.txt echo 第6行=6 >>1.txt echo 第7行=7 >>1.txt echo 第8行=8 >>1.txt echo 第9行=9 >>1.txt echo 第10行=10 >>1.txt echo 第11行 1 >>1.txt echo 第12行 2 >>1.txt echo 第13行 3 >>1.txt echo 第14行 4 >>1.txt echo 第15行 5 >>1.txt echo 第16行 6 >>1.txt echo 第17行 7 >>1.txt echo 第18行 8 >>1.txt echo 第19行 9 >>1.txt echo 第20行 10 >>1.txt echo 第21行=11 >>1.txt echo 第22行 12 >>1.txt echo 第23行=1 >>1.txt echo 第24行=2 >>1.txt echo 第25行 1 >>1.txt echo 第26行 2 exit
setlocal enabledelayedexpansion echo 0>2.txt
setlocal enabledelayedexpansion echo !0>2.txt echo !>>2.txt
setlocal enabledelayedexpansion echo !0>2.txt endlocal echo !>>2.txt