@ECHO OFF&PUSHD %~DP0 &TITLE 绿化和卸载
mode con cols=36 lines=20
color 2F
:Menu
Cls
@ echo.
@ echo.　　　　　 菜 单 选 项
@ echo.
@ echo.     绿化或卸载[必须] → 请输入1
@ echo.
@ echo.     创建桌面图标 → 请输入2
@ echo.
@ echo.     删除桌面图标 → 请输入3
@ echo.
set /p xj= 输入数字按回车：
if /i "%xj%"=="1" Goto Install
if /i "%xj%"=="2" Goto Establish
if /i "%xj%"=="3" Goto Delete
if /i "%xj%"=="4" Goto Uninstall
@ echo.
echo      选择无效，请重新输入
ping -n 2 127.1>nul 
goto menu
:Install
@ echo.
ECHO 　　　正在安装或卸载中..请稍等..
taskkill /f /im 360WangPan.exe>NUL 2>NUL
rd/s/q "%AppData%\360CloudUI" 2>NUL
rd/s/q "%AppData%\360Login"2>NUL
rd/s/q "%AppData%\360Safe\360safe.setup.log"2>NUL
reg delete "HKCU\Software\360Safe\Liveup" /f >NUL 2>NUL
reg delete "HKCR\CLSID\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\CLSID\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{01249E9F-88FF-45d5-82DB-A1BEE06E123C}" /f>NUL 2>NUL
goto Install2
:Establish
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\360云盘.lnk""):b.TargetPath=""%~dp0360WangPan.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close")
goto fanhui
:Delete
del /f /q "%userprofile%"\Desktop\360云盘.lnk
goto fanhui
:fanhui
@ ECHO.
ECHO 　　　设置完成..
ping -n 1 1.0>nul
goto menu
:Install2
@ ECHO.
ECHO 　　　安装或卸载完成..
ping -n 1 1.0>nul
goto menu