回复 17# SandraRusso - @echo off
- set "filesdir=G:\H\"
- for /f %%i in ('dir /ad /b "%filesdir%"') do (
- pushd "%filesdir%%%i"
- md "1-5\" "6-10\" "其他\" 2>nul
- for /l %%a in (1,1,5) do (
- move %%a-*.* "1-5\"
- move %%a.* "1-5\"
- )
- for /l %%a in (6,1,10) do (
- move %%a-*.* "6-10\"
- move %%a.* "6-10\"
- )
- move *.* "其他\"
- popd
- )
- pause
复制代码
|