2004-03-21 18:21:31 -05:00
|
|
|
@echo off
|
2009-01-24 21:06:29 -05:00
|
|
|
:optloop
|
2004-03-21 18:21:31 -05:00
|
|
|
if "%1" == "-f" shift
|
2019-11-25 21:44:11 -05:00
|
|
|
if "%1" == "-r" (shift & set "recursive=1" & goto :optloop)
|
2009-01-24 21:06:29 -05:00
|
|
|
if "%recursive%" == "1" goto :recursive
|
2004-03-21 18:21:31 -05:00
|
|
|
:begin
|
|
|
|
if "%1" == "" goto :end
|
2009-01-24 21:06:29 -05:00
|
|
|
set p=%1
|
2013-01-11 05:21:49 -05:00
|
|
|
if exist "%p:/=\%" for %%I in ("%p:/=\%") do @del "%%I"
|
2004-03-21 18:21:31 -05:00
|
|
|
shift
|
|
|
|
goto :begin
|
2009-01-24 21:06:29 -05:00
|
|
|
:recursive
|
|
|
|
if "%1" == "" goto :end
|
|
|
|
set p=%1
|
|
|
|
if exist "%p:/=\%" rd /s /q "%p:/=\%"
|
|
|
|
shift
|
|
|
|
goto :recursive
|
2004-03-21 18:21:31 -05:00
|
|
|
:end
|