@echo off
echo @describe 找出所有 lastUpdated文件,并删除它。
echo @author XinLau
echo @date 2020年6月4日
:again
set /p REPOSITORY_PATH=输入你的Maven仓库路径:
:: Remove all double quotes
rem 正在搜索所有 lastUpdated文件...
set REPOSITORY_PATH=%REPOSITORY_PATH:"=%
if not exist "%REPOSITORY_PATH%" (
echo Maven warehouse address not found, please try again.
goto again
)
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q "%%i"
)
echo 过期文件删除成功.
pause;