本帖最后由 522235677 于 2014-2-25 19:21 编辑
- @echo off & setlocal ENABLEDELAYEDEXPANSION
- for /f "delims=" %%a in ('dir /s /b') do (
- set n=%%~na
- if "!n:~1,2!"=="ab" echo move "%%a" .
- )
- for /f "delims=" %%a in ('dir /b /ad') do (
- echo rd /s /q "%%a"
- )
复制代码 放在123目录下 |