我发一个无聊点的版本上来...
debug不会用... | @echo off & setlocal EnableDelayedExpansion | | echo "*/*\**,.=*,...=///&+wodfdfd**==...***************==========...">1.txt | | for /f "tokens=* " %%i in ("1.txt") do set "Size=%%~zi" | | for /l %%i in (1,1,%size%) do set "wen=!wen!@" | | echo !wen!>2.txt | | if exist 3.txt del 3.txt | | for /f "skip=1 tokens=1,2,3 " %%i in ('fc /b 1.txt 2.txt') do echo %%j>>3.txt | | for /f "tokens=* " %%i in (3.txt) do set "out=!out!%%i " | | set "out=%out:22=31%" | | set "out=%out:3D=32%" | | set "out=%out:26=33%" | | set "out=%out:2F=34%" | | set "out=%out:2.txt=%" | | set /a "x=%size% / 16" | | set /a "y=100" | | echo @echo off>1.cmd | | echo more +5 "%%~0"^|debug^&graftabl 936^>nul>>1.cmd | | echo copy/b/y $tmp$ "a.txt"^>nul>>1.cmd | | echo del/a/f/q $tmp$>>1.cmd | | echo goto:eof>>1.cmd | | for /l %%i in (1,1,%x%) do ( | | echo e0!y! !out:~0,48!>>1.cmd | | set "out=!out:~48!" | | set /a "y=!y!+10" | | ) | | echo e0!y! !out!>>1.cmd | | echo rcx>>1.cmd | | echo !y!>>1.cmd | | echo n$tmp$>>1.cmd | | echo w>>1.cmd | | echo q>>1.cmd | | | | start "" "1.cmd" | | | | for /f "tokens=* " %%i in (a.txt) do if not defined a set "a=%%i" | | | | echo 字符串%a% | | | | pauseCOPY |
|