- @echo off
- for /f "delims=" %%I in ('dir/s/b/ad^|sort/r') do (
- for /f "tokens=1-9 delims={}[]()()【】{} " %%a in ("%%~nI") do (
- echo,ren "%%~fI" "%%a%%b%%c%%d%%e%%f%%g%%h%%i"
- )
- )
-
-
- for /f "delims=" %%J in ('dir/s/b/a-d') do (
- for /f "tokens=1-9 delims={}[]()()【】{} " %%a in ("%%~nxJ") do (
- echo,ren "%%~fJ" "%%a%%b%%c%%d%%e%%f%%g%%h%%i"
- )
- )
- pause
复制代码
|