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
|
2019-11-26 05:44:11 +03:00
|
|
|
if "%1" == "-r" (shift & set "recursive=1" & goto :optloop)
|
2009-01-25 05:06:29 +03:00
|
|
|
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
|
2013-01-11 14:21:49 +04:00
|
|
|
if exist "%p:/=\%" for %%I in ("%p:/=\%") do @del "%%I"
|
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
|