
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
for /f "tokens=1* delims=:" %%a in ('findstr "a b" "C:\1\*.txt"') do (
set str=!str! %%b
)
echo !str:~1!>"C:\2.txt"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |