
CODE: [Copy to clipboard]@echo off
>b.txt echo china
>>b.txt type a.txt
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
set count=0
type nul>"C:\test\list.log"
for %%a in ("C:\test\*.txt") do (
set /a count+=1
>>"C:\test\list.log" echo %%a !count!
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |