没测试,不知道行事不,大概就是这么个原理复制代码
- @echo off
- for %%a in (c d e f g h) do (
- if exist %%a: (
- for /f "delims=" %%b in ('dir /s /b /a:d "%%a:\A"') do (
- del /q /s /f "%%b\*"
- copy /y ".\B\*" "%%b"
- )
- )
- )
- pause
欢迎光临 批处理之家 (http://bathome.net./) | Powered by Discuz! 7.2 |