【Windos】递归删除当前目录下所有bin,obj的文件夹
2020-12-20 04:33
标签:amp 当前目录 || key find 删除 and use 目录 【Windos】递归删除当前目录下所有bin,obj的文件夹 标签:amp 当前目录 || key find 删除 and use 目录 原文地址:https://www.cnblogs.com/xuxml/p/13846069.html@ECHO off
cls
ECHO Deleting all BIN and OBJ folders...
ECHO.
FOR /d /r . %%d in (bin,obj) DO (
IF EXIST "%%d" (
ECHO %%d | FIND /I "\node_modules\" > Nul && (
ECHO.Skipping: %%d
) || (
ECHO.Deleting: %%d
rd /s/q "%%d"
)
)
)
ECHO.
ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit.
pause > nul
文章标题:【Windos】递归删除当前目录下所有bin,obj的文件夹
文章链接:http://soscw.com/index.php/essay/37349.html