2004-03-22 02:21:31 +03:00
|
|
|
@echo off
|
2009-01-25 05:06:29 +03:00
|
|
|
:optloop
|
2004-03-22 02:21:31 +03:00
|
|
|
if "%1" == "-f" shift
|
2009-01-25 05:06:29 +03:00
|
|
|
if "%1" == "-r" (set recursive=1 & goto :optloop)
|
|
|
|
if "%recursive%" == "1" goto :recursive
|
2004-03-22 02:21:31 +03:00
|
|
|
:begin
|
|
|
|
if "%1" == "" goto :end
|
2009-01-25 05:06:29 +03:00
|
|
|
set p=%1
|
|
|
|
if exist "%p:/=\%" del "%p:/=\%"
|
2004-03-22 02:21:31 +03:00
|
|
|
shift
|
|
|
|
goto :begin
|
2009-01-25 05:06:29 +03:00
|
|
|
:recursive
|
|
|
|
if "%1" == "" goto :end
|
|
|
|
set p=%1
|
|
|
|
if exist "%p:/=\%" rd /s /q "%p:/=\%"
|
|
|
|
shift
|
|
|
|
goto :recursive
|
2004-03-22 02:21:31 +03:00
|
|
|
:end
|