Skip to content

Commit

Permalink
Merge pull request #239 from sajadafaghiy/main
Browse files Browse the repository at this point in the history
Refactor and user experience improvements.
  • Loading branch information
enisn authored May 21, 2024
2 parents 936ab2b + 0228e1b commit 5c42f0d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
16 changes: 0 additions & 16 deletions delete-bin-obj-folders.bat

This file was deleted.

21 changes: 21 additions & 0 deletions delete-temp-directories.bat
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

0 comments on commit 5c42f0d

Please sign in to comment.