使用步骤
- 打开记事本,粘入下述脚本,修改仓库路径
- 修改文件后缀为bat
- 双击执行
脚本代码
@echo off
rem create by sunhao(sunhao.java@gmail.com)
rem crazy coder
rem 这里写你的仓库路径
set REPOSITORY_PATH=H:\mavenRepository2
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause