
CODE: [Copy to clipboard]@echo off
type nul>result.txt
for %%a in (C:\test\A\*.txt) do (
>>result.txt type "%%a"
>>result.txt echo.
)
CODE: [Copy to clipboard][ Last edited by zw19750516 on 2008-5-26 at 09:11 PM ]@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%i in ('dir /s /a-d /b a.txt') do (
set /a n+=1
copy /y "%%i" d:\test\a!n!.txt>nul
)
echo 全部ok!
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |