还好吧- @echo off
- setlocal enabledelayedexpansion
- set "aa=一|二|三|四|五|"
- for /f "tokens=*" %%a in (F:\1.txt) do (set /a js+=1&set bb=%%a&call :loop)
- pause>nul&exit
- :loop
- if %js%==1 echo !aa:~0,2!%bb%&goto :eof
- if %js%==2 echo !aa:~2,2!%bb%&goto :eof
- if %js%==3 echo !aa:~4,2!%bb%&goto :eof
- if %js%==4 echo !aa:~6,2!%bb%&goto :eof
- if %js%==5 echo !aa:~8,2!%bb%&goto :eof
复制代码
|