-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from sajadafaghiy/main
Refactor and user experience improvements.
- Loading branch information
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |