www.bob.tw

刪除特定名稱的目錄及子目錄(use DOS command)

 

for /f %%a in (‘dir “%systemroot%\softwaredistribution\download” /s /b’) do ( del /q /s /f %%a )
for /f %%a in (‘dir “%systemroot%\softwaredistribution\download” /s /b’) do ( rd  /q /s    %%a )

 

資料來源:[DOS] 刪除特定名稱的目錄(包含子目錄)

Scroll to Top