1. 创建一个.bat后缀的文件 并写入内容
@echo off set REPOSITORY_PATH=D:ToolsMaven epository rem search... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%*lastUpdated*"') do ( del /s /q %%i ) rem clean finish.... pause
2.执行文件
1. 创建一个.bat后缀的文件 并写入内容
@echo off set REPOSITORY_PATH=D:ToolsMaven epository rem search... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%*lastUpdated*"') do ( del /s /q %%i ) rem clean finish.... pause
2.执行文件