还能再来一次是没想到的呀- @echo off
- setlocal enabledelayedexpansion
- set "s=0123456789abcdefghijklmnopqrstuvwxyz"
- for %%b in (*.*) do (
- if not "%%b"=="%~nx0" (
- set /a ra=!random!%%36
- set /a rb=!random!%%36
- set /a rc=!random!%%36
- set /a rd=!random!%%36
- call;set name=%%s:~!ra!,1%%%%s:~!rb!,1%%%%s:~!rc!,1%%%%s:~!rd!,1%%
- ren "%%b" "!name!%%~xb"
- )
- )
- pause
复制代码
|