@echo off echo Attempting to delete lib\adb directory... echo. cd /d "%~dp0\.." REM 等待一下,确保没有进程在使用 timeout /t 3 /nobreak >nul REM 尝试删除目录 if exist "lib\adb" ( echo Deleting lib\adb directory... rd /s /q "lib\adb" 2>nul if exist "lib\adb" ( echo. echo ERROR: Failed to delete lib\adb directory. echo Please close any processes using adb.exe and try again. echo. echo You can manually delete the directory after closing all adb processes. ) else ( echo. echo SUCCESS: lib\adb directory deleted successfully! ) ) else ( echo lib\adb directory not found (already deleted or doesn't exist). ) pause