==================
@echo Off
rem 将文本中的字符“aaabbcccbbdddbbeee”提出为aaa ccc ddd eee
echo aaabbcccbbdddbbeee>a.txt
setlocal enabledelayedexpansion
for %%i in (a.txt) do (
set /p str=<%%i
set str=!str:bb=:!
for /f "delims=: tokens=1-4" %%a in ('echo !str!') do echo %%a %%b %%c %%d
)
if exist a.txt del a.txt
pause