@ECHO OFF&TITLE 绿化
@ECHO WWW.CR173.COM 西西软件园
taskkill /f /im QQ* >NUL 2>NUL
taskkill /f /im TXP*>NUL 2>NUL
del/f/q "%TMP%\*.tvl">NUL 2>NUL
del/f/q "%TMP%\*.tsd">NUL 2>NUL
del/f/q "%TMP%\*.dat">NUL 2>NUL
regsvr32 /s   Bin\SSOCommon.dll
regsvr32 /s Bin\TXFTNActiveX.dll 
rd/s/q "%TMP%\QQSafeud.exe" 2>NUL
rd/s/q "%AppData%\Tencent\QQ"2>NUL
rd/s/q "%AppData%\Tencent\Users"2>NUL
del/f "%SystemDrive%\*.stat">NUL 2>NUL
del/f/q "%TMP%\QQSafeud.exe">NUL 2>NUL
regsvr32 /s Bin\SSOAxCtrlForPTLogin.dll
md    "%AppData%\Tencent\QQ\Skins" 2>NUL
md    "%AppData%\Tencent\QQ\Misc\CSC\2052"2>NUL
reg delete HKCU\Software\Tencent\QPlus /F>NUL 2>NUL
echo.NO7>"%AppData%\Tencent\QQ\Misc\CSC\2052\7"2>NUL
echo.NOGroupGMF>"%AppData%\Tencent\QQ\Misc\GMF"2>NUL
echo.NOLogoBanner>"%AppData%\Tencent\QQ\Misc\LogoFile"2>NUL
echo.[Option]>>"%AppData%\Tencent\QQ\Misc\EnvirConf.ini"2>NUL
echo.NOSkinsDown>"%AppData%\Tencent\QQ\Skins\RecommendPreview"2>NUL
echo.FirstOpenLoginPanel=0 >>"%AppData%\Tencent\QQ\Misc\EnvirConf.ini"2>NUL
:Menu
echo.&echo a.创建桌面QQ 
echo.&echo 1.启用QQ音乐的正在收听[自选]   2.禁用QQ音乐的正在收听[默认] 
echo.&echo 3.启用网页临时在线会话[自选]   4.禁用网页临时在线会话[默认]
echo.&echo 5.启用其它不常用项组件[自选]   6.禁用其它不常用项组件[默认] 
echo.&echo.
set /p a=输入数字回车：
if "%a%"=="a" Goto DesktopLnk
if "%a%"=="1" Goto AddQQMusic
if "%a%"=="2" Goto DelQQMusic
if "%a%"=="3" Goto AddTXPFProxy
if "%a%"=="4" Goto DelTXPFProxy
if "%a%"=="5" Goto AddOthePlugin
if "%a%"=="6" Goto DelOthePlugin
:AddQQMusic
regsvr32 /s Bin\TXPFProxy.dll
ren Bin\TXPlatform.bak TXPlatform.exe >NUL 2>NUL&SET E=完成!&GOTO MSGBOX
:DelQQMusic
regsvr32 /u /s Bin\TXPFProxy.dll
ren Bin\TXPlatform.exe TXPlatform.bak >NUL 2>NUL&SET E=完成!&GOTO MSGBOX
:AddTXPFProxy
regsvr32 /s Bin\Timwp.dll & regsvr32 /s Bin\TXPFProxy.dll
ren Bin\TXPlatform.bak TXPlatform.exe >NUL 2>NUL&SET E=完成!&GOTO MSGBOX
:DelTXPFProxy
regsvr32 /u /s Bin\Timwp.dll & regsvr32 /u /s Bin\TXPFProxy.dll
ren Bin\TXPlatform.exe TXPlatform.bak >NUL 2>NUL&SET E=完成!&GOTO MSGBOX
:AddOthePlugin
move /y Plugin\OtherPluginBackup\Com.Tencent.CRM           Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.FriendsSocial Plugin >NUL 2>NUL
move /y Plugin\OtherPluginBackup\Com.Tencent.GameLife      Plugin >NUL 2>NUL 
move /y Plugin\OtherPluginBackup\Com.Tencent.Graffito      Plugin >NUL 2>NUL
move /y Plugin\OtherPluginBackup\Com.Tencent.HDVideo       Plugin >NUL 2>NUL   
move /y Plugin\OtherPluginBackup\Com.Tencent.Memo          Plugin >NUL 2>NUL     
move /y Plugin\OtherPluginBackup\Com.Tencent.MMOG          Plugin >NUL 2>NUL
move /y Plugin\OtherPluginBackup\Com.Tencent.NetBar        Plugin >NUL 2>NUL
move /y Plugin\OtherPluginBackup\Com.Tencent.PaiPai        Plugin >NUL 2>NUL 
move /y Plugin\OtherPluginBackup\Com.Tencent.PaiPaiGift    Plugin >NUL 2>NUL
move /y Plugin\OtherPluginBackup\Com.Tencent.PayCenter     Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.QQLive        Plugin >NUL 2>NUL  
move /y Plugin\OtherPluginBackup\Com.Tencent.QQPet         Plugin >NUL 2>NUL    
move /y Plugin\OtherPluginBackup\Com.Tencent.QQRing        Plugin >NUL 2>NUL 
move /y Plugin\OtherPluginBackup\Com.Tencent.QQWebsite     Plugin >NUL 2>NUL 
move /y Plugin\OtherPluginBackup\Com.Tencent.SoBar         Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.Soso          Plugin >NUL 2>NUL  
move /y Plugin\OtherPluginBackup\Com.Tencent.Stock         Plugin >NUL 2>NUL     
move /y Plugin\OtherPluginBackup\Com.Tencent.Today         Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.WBlog         Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.WenWen        Plugin >NUL 2>NUL      
move /y Plugin\OtherPluginBackup\Com.Tencent.Wireless      Plugin >NUL 2>NUL
SET E=完成!&GOTO MSGBOX
:DelOthePlugin
move /y Plugin\Com.Tencent.CRM           Plugin\OtherPluginBackup >NUL 2>NUL      
move /y Plugin\Com.Tencent.FriendsSocial Plugin\OtherPluginBackup >NUL 2>NUL
move /y Plugin\Com.Tencent.GameLife      Plugin\OtherPluginBackup >NUL 2>NUL 
move /y Plugin\Com.Tencent.Graffito      Plugin\OtherPluginBackup >NUL 2>NUL
move /y Plugin\Com.Tencent.HDVideo       Plugin\OtherPluginBackup >NUL 2>NUL  
move /y Plugin\Com.Tencent.Memo          Plugin\OtherPluginBackup >NUL 2>NUL     
move /y Plugin\Com.Tencent.MMOG          Plugin\OtherPluginBackup >NUL 2>NUL
move /y Plugin\Com.Tencent.NetBar        Plugin\OtherPluginBackup >NUL 2>NUL
move /y Plugin\Com.Tencent.PaiPai        Plugin\OtherPluginBackup >NUL 2>NUL 
move /y Plugin\Com.Tencent.PaiPaiGift    Plugin\OtherPluginBackup >NUL 2>NUL
move /y Plugin\Com.Tencent.PayCenter     Plugin\OtherPluginBackup >NUL 2>NUL     
move /y Plugin\Com.Tencent.QQLive        Plugin\OtherPluginBackup >NUL 2>NUL  
move /y Plugin\Com.Tencent.QQPet         Plugin\OtherPluginBackup >NUL 2>NUL    
move /y Plugin\Com.Tencent.QQRing        Plugin\OtherPluginBackup >NUL 2>NUL 
move /y Plugin\Com.Tencent.QQWebsite     Plugin\OtherPluginBackup >NUL 2>NUL 
move /y Plugin\Com.Tencent.SoBar         Plugin\OtherPluginBackup >NUL 2>NUL      
move /y Plugin\Com.Tencent.Soso          Plugin\OtherPluginBackup >NUL 2>NUL  
move /y Plugin\Com.Tencent.Stock         Plugin\OtherPluginBackup >NUL 2>NUL     
move /y Plugin\Com.Tencent.Today         Plugin\OtherPluginBackup >NUL 2>NUL      
move /y Plugin\Com.Tencent.WBlog         Plugin\OtherPluginBackup >NUL 2>NUL      
move /y Plugin\Com.Tencent.WenWen        Plugin\OtherPluginBackup >NUL 2>NUL     
move /y Plugin\Com.Tencent.Wireless      Plugin\OtherPluginBackup >NUL 2>NUL
SET E=完成!&GOTO MSGBOX
:MsgBox
if "%1"=="" mshta VBScript:MsgBox("%e%",vbSystemModal,"")(close)& Cls&Goto Menu
:DesktopLnk
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\腾讯QQ.lnk""):b.TargetPath=""%~dp0Bin\QQ.exe"":b.WorkingDirectory=""%~dp0Bin"":b.Save:close")&SET E=完成!&GOTO MSGBOX