
CODE: [Copy to clipboard]dir/a/b *.txt >a.txt
CODE: [Copy to clipboard]没优化@@echo off&setlocal enabledelayedexpansion
for /f %%i in ('dir/a/b/on *.txt') do (
set a=%%i
for /f %%a in (!a!) do (
echo !a!:>>b.txt
echo %%a>>b.txt)
)
CODE: [Copy to clipboard]以上代码可以包含特殊字符!type *.txt >a.txt
CODE: [Copy to clipboard]@echo off & Setlocal
for /f "delims=" %%a in ('dir /b /on *.txt') do (
if not exist allfile.txt set/p=<nul>allfile.txt
>nul 2>&1 copy /y /a allfile.txt + "%%~a" allfile.txt
)
start allfile.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |