bat- @echo off
- setlocal enabledelayedexpansion
- set /a "max=20,count=max,folderNum=0"
- for %%i in (*.mp4) do (
- if "!count!"=="%max%" (
- set "count=0"
- set /a "folderNum+=1"
- set "folderName=0000!folderNum!"
- mkdir "m!folderName:~-3!"
- )
- set /a count+=1
- move /y "%%i" "m!folderName:~-3!" >nul
- )
- pause&exit
复制代码
|