windows批量删除.lastUpdated文件
windows批量删除.lastUpdated文件(lastUpdated文件会阻止mvn更新仓库)
在mvn仓库地址外新建refreshRepo.bat,拷贝以下代码并双击执行
@echo off
set workingDir=%~dp0
echo %workingDir%
setlocal enabledelayedexpansion
for /r %workingDir% %%i in (*.lastUpdated) do (
set "bookname=%%i"
set "bookNameFile=%%~nxi"
echo ------ !bookname! ---- !bookNameFile!
del !bookname!
)
setlocal disabledelayedepansion
pause
本文来自博客园,作者:SArtOnline,转载请注明原文链接:https://www.cnblogs.com/sartonline/p/16178169.html
浙公网安备 33010602011771号