bat需另存为ANSI/GB2312编码 | @echo off&cd /d "%~dp0"&mode con lines=5000 | | for %%a in ( | | "G:\1953\民事庭|正卷" | | "G:\1960\xxx|yyy" | | ) do ( | | for /f "tokens=1* delims=|" %%b in ("%%~a") do ( | | for /f "delims=" %%i in ('dir /ad-h/b "%%~b\" 2^>nul') do ( | | if not exist "%%~b\%%~nxi\%%~c\" md "%%~b\%%~nxi\%%~c\" | | echo;"%%~b\%%~nxi\*.jpg" --^> "%%~b\%%~nxi\%%~c\" | | move /y "%%~b\%%~nxi\*.jpg" "%%~b\%%~nxi\%%~c\" | | echo;&echo; | | ) | | ) | | ) | | pause | | exitCOPY |
|