0
我想刪除只有數字名稱的所有文件夾。 所以我寫的使用正則表達式的批處理文件:批處理文件刪除具有特殊名稱的文件夾
@echo off
D:
cd D:\Install\Work
for /d %%i in (*|findstr "^[0-9]*$") do (
rd /s /q %%i
)
echo [all the folders under work are deleted!]
pause
,但它不工作。錯誤在哪裏?
什麼意思是「%%〜nxd」「> nul」 「%%〜fd」? – rich 2013-03-22 12:49:32
@豐富查看更新的答案。 – 2013-03-22 13:28:08