- @echo off>1.txt
- set n=100000>2.txt
- setlocal enabledelayedexpansion
- for /f %%a in (汉字大全.txt) do (
- set str=%%a
- for /l %%i in (0 1 80) do (
- if "!str:~%%i,1!" neq "" (
- set /a n+=1
- >>1.txt echo set !str:~%%i,1!=!n:~-5!
- >>2.txt echo set !n:~-5!=!str:~%%i,1!
- )
- )
- )
复制代码
|