【Windos】递归删除当前目录下所有bin,obj的文件夹 [操作系统入门]

编程

@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 "

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

以上是 【Windos】递归删除当前目录下所有bin,obj的文件夹 [操作系统入门] 的全部内容, 来源链接: utcz.com/z/519368.html

回到顶部