【Windos】递归删除当前目录下所有bin,obj的文件夹

2020-12-20 04:33

阅读:738

标签:amp   当前目录   ||   key   find   删除   and   use   目录   

@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的文件夹

标签:amp   当前目录   ||   key   find   删除   and   use   目录   

原文地址:https://www.cnblogs.com/xuxml/p/13846069.html


评论


亲,登录后才可以留言!