ANSI- @echo off
- REM 主文件夹
- set "folder=C:\Users\lenovo\Desktop\0"
- REM 分隔符
- set "key=上"
- REM 移动
- cd /d "%folder%"
- for /f "tokens=1* delims=%key%" %%i in ('dir /b /a-d "*%key%*"') do (
- if not exist "%%i" mkdir "%%i" >nul 2>nul
- move "%%i%key%%%j" "%%i\%%i%key%%%j"
- )
- pause&exit
复制代码
|