@echo off color f0 mode con cols=50 lines=20 echo *****前提是此QQ号在本机登录过**** set /p qqid=请输入要禁止登录的QQ号: for %%i in (c d e f g ) do ( if not exist %%i: exit for /f "tokens=*" %%j in ('dir /ad /b /s "%%i:/%qqid: =%"') do ( if exist "%%j/qq/Registry.db" (attrib +r "%%j/qq/Registry.db")&&(echo 成功禁止了%qqid: =%的再次登录!!&echo 请按任意键退出&pause>nul&exit) ) ) echo 失败,请确定已经安装QQ并且所禁止的QQ号曾经在本机登录过。 pause>nul