@echo off
::下两行据实修改
cd/d "d:test"
set "fn=a.txt"
(for /f "delims=" %%j in ('findstr "{.*}" "%fn%"')do (
set "L=%%j"
setlocal enabledelayedexpansion
set "L=!L:{=y{!"
call :yky
endlocal
))>"new.txt"
pause&goto :eof
:yky
if "%L%"==""echo;>con&goto :eof
for /f "tokens=2,4,6,8,10* delims={}" %%a in ("!L!")do (
for %%i in ("%%a" "%%b" "%%c" "%%d" "%%e")do (
if not "%%~i"=="" (
set/p={%%~j}...>con
echo;%%~i)
set "q=%%~f"
))
set L=!q!&goto :yky