3 changed files with 44 additions and 23 deletions
@ -1,16 +0,0 @@ |
|||||
@ECHO off |
|
||||
cls |
|
||||
|
|
||||
ECHO Deleting all BIN and OBJ folders... |
|
||||
ECHO. |
|
||||
|
|
||||
FOR /d /r . %%d in (bin,obj, logs, node_modules) DO (( |
|
||||
ECHO.Deleting: %%d |
|
||||
rd /s/q "%%d" |
|
||||
) |
|
||||
) |
|
||||
) |
|
||||
|
|
||||
ECHO. |
|
||||
ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit. |
|
||||
pause > nul |
|
||||
@ -0,0 +1,21 @@ |
|||||
|
@echo off |
||||
|
cls |
||||
|
|
||||
|
set directories= bin, obj, logs, node_modules |
||||
|
set /a count = 0 |
||||
|
|
||||
|
echo Deleting all following directories: |
||||
|
for %%d in (%directories%) do echo %%d |
||||
|
echo. |
||||
|
|
||||
|
for /d /r . %%d in (%directories%) do if exist "%%d" ( |
||||
|
echo. Deleting: %%d |
||||
|
rd /s/q "%%d" |
||||
|
set /a count += 1 |
||||
|
) |
||||
|
|
||||
|
echo. |
||||
|
echo The specified directories were successfully scanned. |
||||
|
echo Number of deleted directories: %count% |
||||
|
echo Press any key to exit. |
||||
|
pause > nul |
||||
Loading…
Reference in new issue