纯P- @echo off
- %1(for /f "tokens=1*" %%a in ('"%~0" :^|sort /r') do echo,%%b)>b.txt
- %1pause & exit/b
-
- for /f "delims=" %%a in (a.txt) do (
- set "str=%%a"
- setlocal enabledelayedexpansion
- set "s=!str!"
- for %%b in (4096 2048 1024 512 256 128 64 32 16) do (
- if "!s:~%%b!" neq "" set /a n+=%%b & set "s=!s:~%%b!"
- )
- set "s=!s!fedcba9876543210"
- set /a n+=100000+0x!s:~15,1!
- echo,!n! !str!
- endlocal
- )
复制代码
|