轉自:http://www.oschina.net/code/snippet_151849_49131java
@
echo
off
rem create by sunhao(sunhao.java@gmail.com)
rem crazy coder
rem 這裏寫你的倉庫路徑
set
REPOSITORY_PATH=F:\study\apache-maven-3.0.3\repository
rem 正在搜索...
for
/f
"delims="
%%i
in
(
'dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"'
)
do
(
del
/s
/q
%%i
)
rem 搜索完畢
pause
# create by sunhao(sunhao.java@gmail.com)
# crazy coder
# 這裏寫你的倉庫路徑
REPOSITORY_PATH=~
/Documents/tools/apache-maven-3
.0.3
/repository
echo
正在搜索...
find
$REPOSITORY_PATH -name
"*lastUpdated*"
|
xargs
rm
-fr
echo
搜索完