作者:じ☆ve宝贝
发布时间:2019-01-07T11:20:02
@echo off
rem create by studyjava
set REPOSITORY_PATH=D:\Develop\Tool\mavenjar
rem 正在搜索...
for /f "delims=" %%i in (''dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"'') do (
echo %%i
del /s /q %%i
)
rem 搜索完毕
pause
# create by studyjava
# 这里写你的仓库路径
REPOSITORY_PATH=/data/mavenjar
echo 正在搜索...
find $REPOSITORY_PATH -name "*lastUpdated*" | xargs rm -fr
echo 搜索完