回复 1# 开心旺旺 - @echo off & setlocal enabledelayedexpansion
- set n=0
- set m=1001
- for /f "delims=" %%a in ('dir /b *.txt') do (
- set "fn=!m:~1!"
- if not exist "!fn!\" md "!fn!\"
- move "%%a" "!fn!\"
- set /a n+=1
- ::指定每组的个数,如17
- if !n! == 17 set n=0 & set /a m+=1
- )
- pause
复制代码
|