
CODE: [Copy to clipboard]注意,move比较危险,注意数据的保存,或者复制一份来测试@echo off
del ml.txt >nul 2>nul
dir /ad /s /b abc* >>ml.txt
for /f "tokens=*" %%i in (ml.txt) do (call :do %%i)
pause
del ml.txt >nul 2>ml.txt
exit
:do
cd /d %1
for /f "tokens=*" %%a in ('dir/b/a') do (move "%%a" ..\)
echo 将要删除目录%1
pause
rd /q /s %1
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |