- @echo off & setlocal enabledelayedexpansion
- set "chars=1234567890QWERTYUIOPASDFGHJKLZXCVBNM"
- >B.TXT ( rem A.TXT -> 处理 -> B.TXT
- for /f "delims=" %%l in (A.TXT) do (
- set "tail="
- for /l %%i in (1 1 8) do (
- set /a "r=!random! %% 36"
- for %%r in (!r!) do set "tail=!tail!!chars:~%%r,1!"
- )
- echo,M%%l!tail!
- )
- )
复制代码
|