只能在Windows上用。
set REPOSITORY_PATH=E:\environment\apache-maven-3.6.3\repo
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause
保存为.bat
文件执行即可。
只能在Windows上用。
set REPOSITORY_PATH=E:\environment\apache-maven-3.6.3\repo
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause
保存为.bat
文件执行即可。