本帖最后由 yhcfsr 于 2020-9-29 16:54 编辑
- @echo off
-
- >"%USERPROFILE%\desktop\收集.txt" (for /f "delims=" %%a in ('dir /a-d/b/s *.cfg') do (
- call :GetContent "%%~a"
- ))
- start "" "%USERPROFILE%\desktop\收集.txt"
- exit /b
-
- :GetContent
- for /f "useback" %%i in ("%~1") do (
- if "%%~i" equ "-----split-----" goto :eof
- echo;%%i
- )
复制代码 用法: 保存为BAT,放在桌面执行 |