- @echo off&setlocal enabledelayedexpansion
- md New 2>nul
- set step=1
- for /f "tokens=1,2" %%a in (a.txt) do (
- set /a n+=1,m=n-step,k=m-step
- set "_!n!=%%b"
- if defined _!k! (
- for /l %%c in (0 1 62) do (
- set /a Name=%%c + 101
- for %%d in (!k! !m! !n!) do (
- set aa=!_%%d!
- set "str=!str! !aa:~%%c,1!"
- )
- echo,%%a !str:~1!>>"New\!Name:~1!.txt"
- set "str="
- )
- )
- )
- pause
复制代码 更改第3行的数字即可,试试? |