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
|
2009-01-24 21:06:29 -05:00
|
|
|
if "%1" == "-r" (set recursive=1 & goto :optloop)
|
|
|
|
if "%recursive%" == "1" goto :recursive
|
2004-03-21 18:21:31 -05:00
|
|
|
:begin
|
|
|
|
if "%1" == "" goto :end
|
2004-03-23 00:32:01 -05:00
|
|
|
if exist "%1" del "%1"
|
2009-01-24 21:06:29 -05:00
|
|
|
set p=%1
|
|
|
|
if exist "%p:/=\%" del "%p:/=\%"
|
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
|