blob: fefc0305458e57b5e30d9d398f3b2e483fd3195e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@echo off
setlocal
set recursive=
:optloop
if "%1" == "-f" shift
if "%1" == "-r" (shift & set "recursive=1" & goto :optloop)
if "%1" == "--debug" (shift & set PROMPT=$E[34m+$E[m$S & echo on & goto :optloop)
:begin
if "%1" == "" goto :end
set p=%1
set p=%p:/=\%
if exist "%p%" del /q "%p%" > nul
if "%recursive%" == "1" for /D %%I in (%p%) do (
rd /s /q %%I
)
shift
goto :begin
:end
|