绿化和卸载 DOS 批处理
@ECHO OFF&PUSHD %~DP0 &TITLE 绿化和选项
mode con cols= lines=
color 2F
Rd "%WinDir%\system32\test_permissions" >NUL >NUL
Md "%WinDir%\System32\test_permissions" >NUL||(Echo 请使用右键管理员身份运行!&&PAUSE >NUL&&EXIT)
Rd "%WinDir%\System32\test_permissions" >NUL
SetLocal EnableDelayedExpansion
:Menu
Cls
@ echo.
@ echo. 菜 单 选 项
@ echo.
@ echo. 绿化[必须] → 请输入1
@ echo.
@ echo. 设为默认下载器 → 请输入2
@ echo.
@ echo. 创建桌面图标 → 请输入3
@ echo.
@ echo. 自定义边下边播 → 请输入4
@ echo.
@ echo. 卸载 → 请输入5
@ echo.
set /p xj= 输入数字按回车:
if /i "%xj%"=="" Goto Install
if /i "%xj%"=="" Goto Give
if /i "%xj%"=="" Goto Establish
if /i "%xj%"=="" Goto custom
if /i "%xj%"=="" Goto Uninstall
@ echo.
echo 选择无效,请重新输入
ping -n 127.1>nul
goto menu
:Install
@ echo.
ECHO 正在安装中..请稍等..
taskkill /f /im Thunder*>nul >nul
Program\Thunder.exe -unassociate:td -unassociate:torrent -unassociate:downlist -unassociate:thunderskin -unassociate:thunderaddin -unassociate:all -unregprotocol:ed2k -unregprotocol:magnet -unregprotocol:thunder -unregprotocol:xlapplink
rd/s/q "%tmp%\Xunlei" >nul >nul
rd/s/q "%tmp%\Thunder" >nul >nul
rd/s/q "%tmp%\ThunderLiveUD" >nul >nul
rd/s/q "%tmp%\Thunder Network" >nul >nul
rd/s/q "%AllUsersProfile%\Application Data\Thunder Network" >nul >nul
rd/s/q "%AllUsersProfile%\Application Data\Xunlei" >nul >nul
rd/s/q "%AllUsersProfile%\Xunlei" >nul >nul
rd/s/q "%AllUsersProfile%\Thunder Network" >nul >nul
rd/s/q "%AppData%\Thunder Network" >nul >nul
rd/s/q "%CommonProgramFiles%\Thunder Network" >nul >nul
rd/s/q "%CommonProgramFiles(x86)%\Thunder Network" >nul >nul
rd/s/q "%UserProfile%\Local Settings\Application Data\Thunder Network" >nul
rd/s/q "%UserProfile%\Local Settings\Application Data\Pusher" >nul
rd/s/q "%UserProfile%\AppData\LocalLow\Thunder Network" >nul >nul
rd/s/q "%UserProfile%\AppData\LocalLow\XueLei" >nul >nul
rd/s/q "%UserProfile%\My Documents\Thunder">nul
rd/s/q "%AllUsersProfile%\Application Data\Thunder Network">nul
If Exist "%PUBLIC%" Rd /s/q "%PUBLIC%\Thunder Network" >nul >nul
If Exist "%PUBLIC%" Rd /s/q "%PUBLIC%\Documents\Thunder Network" >nul >nul
del/f/q "%AppData%\Microsoft\Windows\Libraries\迅雷下载.library-ms" >nul
Md "%AllUsersProfile%\Application Data\Thunder Network\tp_common_info.dat"
if %errorlevel%== Md "%PUBLIC%\Thunder Network\tp_common_info.dat"
regsvr32 /s "Program\BHO\ThunderAgent.dll" >nul >nul
if exist "%WinDir%\SysWOW64" regsvr32 /s "Program\BHO\ThunderAgent64.dll" >nul >nul
Md "%AllUsersProfile%\Application Data\Thunder Network\cid_store.dat"
Md "%AllUsersProfile%\Application Data\Thunder Network\emule_upload_list.dat"
if %errorlevel%== (Md "%PUBLIC%\Thunder Network\cid_store.dat"&Md "%PUBLIC%\Thunder Network\emule_upload_list.dat")
reg add "HKLM\Software\Thunder Network\ThunderOem\thunder_backwnd" /v "dir" /d "%~dp0\" /f >nul 2>nul
reg add "HKLM\Software\Thunder Network\ThunderOem\thunder_backwnd" /v "Path" /d "%~dp0Program\Thunder.exe" /f >nul >nul
reg add "HKLM\Software\Thunder Network\ThunderOem\thunder_backwnd" /v "instdir" /d "%~dp0\" /f >nul 2>nul
reg add "HKLM\Software\Thunder Network\ThunderOem\thunder_backwnd" /v "Version" /d "7.9.43.5054" /f >nul >nul
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" /ve /d "%~dp0Program\BHO\geturl.htm" /f >nul
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" /v "Contexts" /t REG_DWORD /d "0x00000022" /f >nul
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" /ve /d "%~dp0Program\BHO\getAllurl.htm" /f >nul
reg add "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" /v "Contexts" /t REG_DWORD /d "0x000000f3" /f >nul
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Wow6432Node\Thunder Network\ThunderOem\thunder_backwnd" /v "dir" /d "%~dp0\" /f >nul 2>nul
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Wow6432Node\Thunder Network\ThunderOem\thunder_backwnd" /v "Path" /d "%~dp0Program\Thunder.exe" /f >nul >nul
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Wow6432Node\Thunder Network\ThunderOem\thunder_backwnd" /v "instdir" /d "%~dp0\" /f >nul 2>nul
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Wow6432Node\Thunder Network\ThunderOem\thunder_backwnd" /v "Version" /d "7.9.43.5054" /f >nul >nul
reg add "HKCR\Xunlei.Bittorrent.6\DefaultIcon" /ve /d "%~dp0Program\TorrentFile.ico" /F>nul
reg add "HKCR\Xunlei.Bittorrent.6\Shell\Open" /ve /d "使用迅雷下载该BT文件" /F>nul
reg add "HKCR\Xunlei.Bittorrent.6\Shell\Open\command" /ve /d "%~dp0Program\Thunder.exe %%1" /F>nul
reg add "HKCR\Xunlei.LSTFile.6\DefaultIcon" /ve /d "%~dp0Program\XLDownloadList.ico" /F>nul
reg add "HKCR\Xunlei.LSTFile.6\Shell\Open" /ve /d "使用迅雷下载该任务列表文件" /F>nul
reg add "HKCR\Xunlei.LSTFile.6\Shell\Open\command" /ve /d "%~dp0Program\Thunder.exe %%1" /F>nul
reg add "HKCR\Xunlei.TDFile.6\DefaultIcon" /ve /d "%~dp0Program\XLTempFile.ico" /F>nul
reg add "HKCR\Xunlei.TDFile.6\Shell\Open" /ve /d "使用迅雷下载未完成文件" /F>nul
reg add "HKCR\Xunlei.TDFile.6\Shell\Open\command" /ve /d "%~dp0Program\Thunder.exe %%1" /F>nul
goto Install2
:Establish
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\迅雷.lnk""):b.TargetPath=""%~dp0Program\Thunder.exe"":b.WorkingDirectory=""%~dp0Program"":b.Save:close")
goto fanhui
:Give
Program\BHO\XLNonIESvr.exe -r ie -silent -setfirst
Program\BHO\XLNonIESvr.exe -r -silent -setfirst
Program\BHO\XLNonIESvr.exe -r opera -silent -setfirst
Program\BHO\XLNonIESvr.exe -r maxthon -silent -setfirst
Program\BHO\XLNonIESvr.exe -r theworld -silent -setfirst
Program\BHO\XLNonIESvr.exe -r firefox -silent -setfirst
Program\BHO\XLNonIESvr.exe -r chrome -silent -setfirst
Program\BHO\XLNonIESvr.exe -r SogouExplorer -silent -setfirst
regsvr32 /s "Program\np_tdieplat.dll" >nul >nul
reg add "HKLM\Software\Google\Chrome\NativeMessagingHosts\com.xunlei.thunder" /f /ve /d "%~dp0Program\com.xunlei.thunder.json" >nul
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Google\Chrome\NativeMessagingHosts\com.xunlei.thunder" /f /ve /d "%~dp0Program\com.xunlei.thunder.json" >nul
goto fanhui
:Uninstall
@ echo.
echo 正在卸载中..请稍等..
taskkill /f /im Thunder*>nul >nul
rd/s/q "%tmp%\Xunlei" >nul >nul
rd/s/q "%tmp%\Thunder" >nul >nul
rd/s/q "%tmp%\ThunderLiveUD" >nul >nul
rd/s/q "%tmp%\Thunder Network" >nul >nul
rd/s/q "%AllUsersProfile%\Application Data\Thunder Network" >nul >nul
rd/s/q "%AllUsersProfile%\Application Data\Xunlei" >nul >nul
rd/s/q "%AllUsersProfile%\Xunlei" >nul >nul
rd/s/q "%AllUsersProfile%\Thunder Network" >nul >nul
rd/s/q "%AppData%\Thunder Network" >nul >nul
rd/s/q "%CommonProgramFiles%\Thunder Network" >nul >nul
rd/s/q "%CommonProgramFiles(x86)%\Thunder Network" >nul >nul
rd/s/q "%UserProfile%\Local Settings\Application Data\Thunder Network" >nul
rd/s/q "%UserProfile%\Local Settings\Application Data\Pusher" >nul
rd/s/q "%UserProfile%\AppData\LocalLow\Thunder Network" >nul >nul
rd/s/q "%UserProfile%\AppData\LocalLow\XueLei" >nul >nul
rd/s/q "%UserProfile%\My Documents\Thunder">nul
rd/s/q "%AllUsersProfile%\Application Data\Thunder Network">nul
del/f/q "Program\BHO\ThunderAgent7.9.39.4994.dll">nul
del/f/q "%AppData%\Microsoft\Windows\Libraries\迅雷下载.library-ms" >nul
If Exist "%PUBLIC%" Rd /s/q "%PUBLIC%\Thunder Network" >nul >nul
If Exist "%PUBLIC%" Rd /s/q "%PUBLIC%\Documents\Thunder Network" >nul >nul
Program\Thunder.exe -unassociate:td -unassociate:torrent -unassociate:downlist -unassociate:thunderskin -unassociate:thunderaddin -unassociate:all -unregprotocol:ed2k -unregprotocol:magnet -unregprotocol:thunder -unregprotocol:xlapplink
Program\BHO\XLNonIESvr.exe -u ie -silent
Program\BHO\XLNonIESvr.exe -u -silent
Program\BHO\XLNonIESvr.exe -u opera -silent
Program\BHO\XLNonIESvr.exe -u chrome -silent
Program\BHO\XLNonIESvr.exe -u firefox -silent
Program\BHO\XLNonIESvr.exe -u theworld -silent
Program\BHO\XLNonIESvr.exe -u SogouExplorer -silent
regsvr32 /s /u "Program\BHO\ThunderAgent.dll" >nul >nul
if exist "%WinDir%\SysWOW64" regsvr32 /s /u "Program\BHO\ThunderAgent64.dll" >nul >nul
regsvr32 /s /u "Program\np_tdieplat.dll" >nul >nul
reg delete "HKLM\Software\Thunder Network" /f >nul >nul
reg delete "HKLM\Software\Wow6432Node\Thunder Network" /f >nul >nul
reg delete "HKLM\Software\Google\Chrome\NativeMessagingHosts" /f >nul >nul
reg delete "HKLM\Software\Wow6432Node\Google\Chrome\NativeMessagingHosts" /f >nul >nul
reg delete "HKCR\Xunlei.Bittorrent.6" /f >nul >nul
reg delete "HKCR\Xunlei.LSTFile.6" /f >nul >nul
reg delete "HKCR\Xunlei.TDFile.6" /f >nul >nul
reg delete "HKCR\Xunlei.ThunderSkin.6" /f >nul >nul
reg delete "HKCU\Software\Thunder Network" /f >nul >nul
reg delete "HKLM\Software\Google\Chrome\NativeMessagingHosts" /f >nul >nul
reg delete "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" /f >nul >nul
reg delete "HKCU\Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" /f >nul >nul
del /f /q "%userprofile%"\Desktop\迅雷.lnk
del /f /q "%userprofile%"\桌面\迅雷.lnk
goto Uninstall2
:custom
start Program\Xmp.ini
:fanhui
@ ECHO.
ECHO 设置完成..
goto menu
:Install2
@ ECHO.
ECHO 安装完成..
goto menu
:Uninstall2
@ ECHO.
ECHO 卸载完成..
goto menu
绿化和卸载 DOS 批处理的更多相关文章
- 利用DOS批处理实现定时关机操作
10月1放假回来,寝室晚上10:30就停电了,最无法让人理解的是第二天早上8:00才来电.原来晚上电脑都是不关机的,开着WiFi一直到天亮,可是现在不行了,电脑如果一直开着第二天早上起来电脑肯定没电, ...
- DOS批处理中%cd%和%~dp0的区别
DOS批处理中%cd%和%~dp0的区别 在DOS的批处理中,有时候需要知道当前的路径. 在DOS中,有两个环境变量可以跟当前路径有关,一个是%cd%, 一个是%~dp0. 这两个变量 ...
- DOS批处理不支持将UNC 路径作为当前目录的巧妙解决方案
DOS批处理不支持将UNC 路径作为当前目录的巧妙解决方案在有些时候,需要在批处理中操作UNC目录,但批处理并不能直接对UNC目录进行操作,怎么办? 废话少说,直接上代码,打开网上邻居→整个网络→Mi ...
- 用DOS批处理实现FTP自动上传、下载、清理文件
用DOS批处理实现FTP自动上传.下载.清理文件 最近好像特别的忙,好久没来写点东西了,今天写了一个利用批处理程序完成FTP自动上传.下载.清理文件的程序.赶紧 记录下来,以备日后之用.功能介绍:自动 ...
- DOS批处理命令判断操作系统版本、执行各版本对应语句
DOS批处理命令判断操作系统版本.执行各版本对应语句 昨天在家里试用 netsh interface ip set address 这些命令更改上网IP.DNS.网关等,今天将那些代码拿来办公室 ...
- DOS批处理延时技术
DOS批处理延时技术 举个例子,我们要延时5秒打开gdh.txt这个文件,可以用以下几个方法 方法一:ping 缺点:时间精度为1秒,不够精确 www.2cto.com @echo off ...
- DOS批处理的字符串功能
原文:DOS批处理的字符串功能 DOS批处理的字符串功能 批处理有着具有非常强大的字符串处理能力,其功能绝不低于C语言里面的字符串函数集.批处理中可实现的字符串处理功能有:截取字符串内容.替换字符串特 ...
- DOS批处理中%cd%和%~dp0的区别[forward]
DOS批处理中%cd%和%~dp0的区别 在DOS的批处理中,有时候需要知道当前的路径. 在DOS中,有两个环境变量可以跟当前路径有关,一个是%cd%, 一个是%~dp0. 这两个变量的 ...
- DOS批处理命令递归删除给定的文件(夹),兼VC工程清理小工具
使用dos批处理命令递归删除指定的文件(夹): (下面内容针对清理VC工程!自己按说明任意修改) 2014-06-10修改:删除前增加了[y,n]询问: echo off rem 递归删除当前文件下指 ...
随机推荐
- javascript大神修炼记(2)——运算符
读者朋友们好,前面我已经大概的了解了Javascript的作用以及一些基本的函数声明与变量声明,今天我们就接着前面的内容讲解,我们就来看一下javscript的逻辑(正序,分支,循环)以及一些简单的运 ...
- CentOS7.5安装notepadqq
这个notepadqq就是linux版本的notepad了 1.添加yum源 sudo wget -O /etc/yum.repos.d/sea-devel.repo http://sea.fedor ...
- sonar rule
bug类型: 1.".equals()" should not be used to test the values of "Atomic" classes. ...
- Java基础:类加载机制
之前的<java基础:内存模型>当中,我们大体了解了在java当中,不同类型的信息,都存放于java当中哪个部位当中,那么有了对于堆.栈.方法区.的基本理解以后,今天我们来好好剖析一下,j ...
- PHP文件包含小结
协议 各种协议的使用有时是关键 file协议 file后面需是///,例如file:///d:/1.txt 也可以是file://e:/1.txt,如果是在当前盘则可以file:///1.txt 如果 ...
- CF #502
#include<cstdio> #include<string> #include<cstdlib> #include<cmath> #include ...
- CodeForces 733C Epidemic in Monstropolis
模拟. 连续的一段$a$合成一个$b$.每段中如果数字只有$1$个,那么可以合成.如果数字个数大于等于$2$个,如果都是一样的,那么无法合成,否则要找到一个可以移动的最大值位置开始移动.一开始写了一个 ...
- Java基于数据源的数据库访问
☞ 概述 最早接触的Java访问数据库,是通过jdbc接口.后来工作之后,一般是在服务器(如weblogic)配置数据源,通过JNDI使用数据源:最近需要在程序中动态构造数据源,查了些资料,备录于此. ...
- 现代CSS清除浮动
清除浮动 排除远古时代的hack解决方案,比如那些要兼容IE6~8的方法.其实总结起来,大致有三种方法: overflow 原理解析:块级格式上下文规定了页面必须自动包含突出的浮动元素! 而overf ...
- [BZOJ 2298] Problem A
Link: BZOJ 2298 传送门 Solution: 可以将每个人的话转化为$[l[i],r[i]]$的人得分相同 用$map$记录认为$[i,j]$相同的人数,$pos[i][j]$记录以$i ...