
CODE: [Copy to clipboard]@echo off
for %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
if not exist %%a:\nul goto :eof
echo %%a drive OK !
for /f %%b in (myCatalogue.txt) do (
IF EXIST %%a:\%%b\nul call :_delit %%a %%b
echo 目录不存在!))
pause
goto :eof
:_delit
echo %1:\%2目录存在,删除之!
attrib -s -r -h %1:\%2
rd /s /q %1:\%2
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |