目录
Home
自动杀死QQProtect程序
在任务计划程序中创建任务,
- 当系统登陆后,自动杀掉QQProtect
- 当因为启动腾讯系软件,QQProtect启动后,自动延迟杀死该服务与进程
系统登陆时自动杀掉 QQProtect 进程
Shutdown the QPCore service when login system.
打开 【计算机管理】-【系统工具】-【任务计划程序】-【任务计划程序库】,点击右侧【创建任务】,
- 【常规】
- 【名称】:ShutdownQPCoreWhenSystemStart
- 【描述】:Shutdown the QPCore service when login system.
- √【使用最高权限运行(I)】(防止因权限不足运行失败)
- 【触发器】
- 【新建】
- 【开始任务】:登陆时
- 【操作】
- 【新建】
- 【操作】:启动程序
- 程序或脚本: ..\路径\KillQQProtect.bat (脚本内容如下)
- 【条件】
- 【电源】
- ×(不勾选)只有在计算机使用交流电源时才启动此任务
- 【确定】
调用脚本如下(.bat 文件保存为 Ansi 编码格式,防止乱码)
- KillQQProtect.bat
@echo off echo kill qqprotect... hah taskkill /f /t /im qqprotect.exe
QQProtect服务运行后自动杀进程
打开QQ相关进程(TIM)后,会启动QPCore,当启动QPCore后,将其关闭
打开 【计算机管理】-【系统工具】-【任务计划程序】-【任务计划程序库】,点击右侧【创建任务】,
- 【常规】
- 【名称】:ShutdownQPCoreWhenLoadQQProc
- 【描述】:打开QQ相关进程(TIM)后,会启动QPCore,当启动QPCore后,将其关闭
- √【使用最高权限运行(I)】(防止因权限不足运行失败)
- 【触发器】
- 【新建】
- 【开始任务】:发生事件时
- 选泽 【基本】
- 日志:应用程序
- 源:QPCore
- 事件ID:0
- 【操作】
- 【新建】
- 【操作】:启动程序
- 程序或脚本: ..\路径\KillQQProtectDelay.bat (脚本内容如下)
- 【条件】
- 【电源】
- ×(不勾选)只有在计算机使用交流电源时才启动此任务
- 【确定】
调用脚本如下(.bat 文件保存为 Ansi 编码格式,防止乱码)
- KillQQProtectDelay.bat
@echo off echo 启动QPCore (qqprotect.exe) 后,自动停止QPCore (qqprotect.exe),请稍等... ping 127.0.0.1 > nul -n 2 ping 127.0.0.1 > nul -n 2 ping 127.0.0.1 > nul -n 2 taskkill /f /t /im qqprotect.exe
禁用并删除 AlibabaProtect
Alibabaprotect是阿里巴巴的全家桶插件,此进程不仅会占用大量内存和cpu性能,会在后台悄悄的监控你的上网过程,还在后台监控你的一举一动,然后给你精准推送广告,所以它不仅仅是一个文件,还是一个恶意软件。而且Alibabaprotect非常难删除,删掉后重启电脑又会自动出现,是一个名副其实的流氓软件.
- 下载 Autoruns 系统管理工具
- 使用 管理员权限 启动Autoruns64.exe
- 选择Drivers 选项卡
- 找到 AliPaladin 驱动, 右键,弹出菜单选择delete删除(搜索 ali 相关的,都删掉).
- 重启计算机
- 删除残留文件
- 删除 %systemroot%\system32\drivers 下的 AliPaladin.sys 驱动文件
- 删除 %SystemDrive%\Program Files (x86)\AlibabaProtect 整个目录
阿里的这款软件属于驱动级的带有自我保护特性的“安全软件”,从系统中清除这类软件必须将相关的驱动从内核加载的驱动列表中移除再进行删除。
批处理常用脚本:MYSQL相关
本示例是 MySQL 安装、卸载、数据导入、数据导出 相关脚本。
创建了环境变量 %MYSQL_HOME% 用于标识程序已安装。
以下脚本下载后,请使用ANSI编码保存,否则中文乱码。
样例1:登陆MySQL
说明:登陆前,判断是否已安装MySQL,如果未安装,则调用样例2脚本安装并启动服务,安装后,会使用默认用户密码登陆MySQL
- 00_run.bat
@echo off echo. echo %date% %time% echo. SET curDir=%~dp0 echo 当前路径为 %curDir% echo. SC QUERY MySQL > NUL rem 如果服务存在,跳转至 serverexist 标签 if ERRORLEVEL 1060 goto servernotexist goto serverexist :serverexist echo 将自动使用默认账户登录MYSQL,请注意及时修改密码 echo. pause "%curDir%bin\mysql" -h localhost -u root -pmysqld goto end :servernotexist rem echo 开始执行安装 echo MySQL 服务无效,将要自动执行安装 echo. call 01_install_then_run_server.bat echo. goto end :end pause
样例2:安装并启动MYSQL服务
设置my.ini、安装 MySQL 服务然后启动服务、设置 MySQL_HOME 环境变量
(如果已有服务,则判断是否进行卸载)
- 01_install_then_run_server.bat
@echo off echo. echo %date% %time% echo. SET curDir=%~dp0 echo 当前路径为 %curDir% echo. SC QUERY MySQL > NUL rem 如果服务存在,跳转至 serverexist 标签 if ERRORLEVEL 1060 goto servernotexist goto serverexist :serverexist echo 服务已存在,程序将会卸载该服务,然后再继续安装。 echo. set /p choice=请按 Y 然后回车继续执行安装,或者按任意键退出: echo. if /i "%choice%" == "Y" goto choice_y_because_server_exist goto end :choice_y_because_server_exist rem 继续安装 echo ********************************************************** echo 卸载已有服务 echo. net stop MySQL sc delete MySQL goto beginsetup :servernotexist rem echo 开始执行安装 goto beginsetup :beginsetup echo. echo ********************************************************** echo. echo 开始安装 MySQL (共3步) echo. rem pause echo 1. 设置配置文件 echo. rem 从 my_default.ini 中拷贝文本至my.ini set mydefaultini="%curDir%my_default.ini" set myini="%curDir%my.ini" rem 清空文件,重新写入 if exist %myini% ( del %myini% ) rem usebackq 支持文件路径中带空格 for /f "usebackq tokens=1,* delims= " %%i in (%mydefaultini%) do ( rem 追加内容 echo %%i %%j>>%myini% ) set line1=basedir="%curDir%" echo %line1%>>%myini% set line2=datadir="%curDir%data" echo %line2%>>%myini% echo 配置文件配置完成 echo. echo 2. 安装 MySQL 服务 echo. cd bin mysqld install echo MySQL 服务安装完成 echo. echo 3. 正在启动 MySQL 服务 echo. net start mysql echo MySQL 服务启动完成 echo. echo ********************************************************** echo 正在设置环境变量 echo. rem 左单引号,能够支持包含空格的路径 set environment_path="%curDir% setx /M MYSQL_HOME %environment_path% echo 已设置环境变量 MYSQL_HOME = %environment_path% echo. echo ********************************************************** echo. echo 请查阅提示信息 cd ../ call ReadMeAfterInstalled.txt echo. echo 将自动使用默认账户登录MYSQL,请注意及时修改密码 echo. pause "%curDir%bin\mysql" -h localhost -u root -pmysqld echo. :end pause
样例3:停止并删除服务
- 02_stop_then_del_server.bat
@echo off SC QUERY MySQL > NUL if ERRORLEVEL 1060 goto servernotexist goto serverexist :serverexist net stop MySQL sc delete MySQL goto goon :servernotexist echo server not exist goto goon :goon if exist my.ini ( del my.ini ) echo ********************************************************** echo 正在删除环境变量 echo. setx /M MYSQL_HOME "" REG delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /F /V MYSQL_HOME echo 已删除环境变量 MYSQL_HOME echo. echo ********************************************************** echo uninstalled. pause
样例4:导入数据
如果 TestDatabase 数据库存在,首先将其销毁。
然后创建 TestDatabase 数据库,向该数据库导入脚本所在目录下的 TestDatabase.sql 数据
- 01_build_data.bat
@echo off echo. echo %date% %time% echo. SET curDir=%~dp0 echo 当前路径为 %curDir% echo. if /i "%MYSQL_HOME%" == "" goto mysqlnotexist goto mysqlexist :mysqlexist echo. echo MYSQL_HOME 环境变量有效 echo %MYSQL_HOME% echo. goto dothing :mysqlnotexist echo. echo MYSQL_HOME 环境变量无效,请检查 echo. goto end :dothing set databasename=TestDatabase set sqlfile=%curDir%tempimportsql.sql rem sql脚本文件名称与数据库名称一致 set importsql=%curDir%%databasename%.sql rem 创建sql脚本 if exist %sqlfile% ( del %sqlfile% ) echo drop database if exists %databasename%;>>%sqlfile% echo create database %databasename%;>>%sqlfile% echo use %databasename%;>>%sqlfile% echo source %importsql%>>%sqlfile% echo 生成脚本成功,开始执行导入 echo. pause %MYSQL_HOME%bin\mysql -h localhost -u root -pmysqld<%sqlfile% echo. echo 数据导入成功 echo. rem 删除sql脚本 if exist %sqlfile% ( del %sqlfile% ) :end pause
样例5:删除数据库
删除 TestDatabase 数据库
- 02_destroy_data.bat
@echo off echo. echo %date% %time% echo. SET curDir=%~dp0 echo 当前路径为 %curDir% echo. if /i "%MYSQL_HOME%" == "" goto mysqlnotexist goto mysqlexist :mysqlexist echo. echo MYSQL_HOME 环境变量有效 echo %MYSQL_HOME% echo. goto dothing :mysqlnotexist echo. echo MYSQL_HOME 环境变量无效,请检查 echo. goto end :dothing set databasename=TestDatabase set sqlfile=%curDir%tempimportsql.sql rem 创建sql脚本 if exist %sqlfile% ( del %sqlfile% ) echo drop database if exists %databasename%;>>%sqlfile% echo 生成脚本成功,将要删除数据库: %databasename% echo. pause %MYSQL_HOME%bin\mysql -h localhost -u root -pmysqld<%sqlfile% echo. echo 执行成功 echo. rem 删除sql脚本 if exist %sqlfile% ( del %sqlfile% ) :end pause
样例6:数据导出
将 TestDatabase 数据库中的数据导出到 TestDatabase_export.sql
- 03_export_data.bat
@echo off echo. echo %date% %time% echo. SET curDir=%~dp0 echo 当前路径为 %curDir% echo. if /i "%MYSQL_HOME%" == "" goto mysqlnotexist goto mysqlexist :mysqlexist echo. echo MYSQL_HOME 环境变量有效 echo %MYSQL_HOME% echo. goto dothing :mysqlnotexist echo. echo MYSQL_HOME 环境变量无效,请检查 echo. goto end :dothing set databasename=TestDatabase set databasefile=%MYSQL_HOME%data\%databasename%\db.opt rem 判断数据库目录是否存在,如果存在则继续进行删除 if exist %databasefile% goto dodelete goto giveupdelete :giveupdelete echo. echo 警告:数据库不存在,无法导出,请检查。 echo. goto end :dodelete set sqlfile=%databasename%_export.sql rem 创建sql脚本 if exist %sqlfile% ( del %sqlfile% ) echo. echo 将要备份数据库 %databasename% 到 %sqlfile% echo. pause %MYSQL_HOME%bin\mysqldump -h localhost -u root -pmysqld %databasename% > %sqlfile% echo. echo 执行成功 echo. echo *************************** echo. echo 如需使用 01_build_data.bat 执行导入, echo. echo 请将 %sqlfile% 命名为 %databasename%.sql echo. echo *************************** :end pause
批处理设置环境变量
假设 enviname 为要设置的环境变量参数名
set enviname="EnvironmentPath"
创建用户环境变量
setx %enviname% %path%
创建系统环境变量
setx /M %enviname% %path%
删除用户环境变量
REG delete HKCU\Environment /F /V %enviname%
删除系统环境变量
REG delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /F /V %enviname%
评论
I'd suggest this article to everyone curious about this field. Clear descriptions of important ideas. 1xbet
I'd suggest this article to everyone curious about this field. Clear descriptions of important ideas. 1xbet
I completely concur with your main argument. Additionally, I would add that this aspect is equally important. 1xbet
I completely concur with your main argument. Additionally, I would add that this aspect is equally important. 1xbet
mostbet РФ Your fortune awaits! Enjoy exclusive bonuses! Stay tuned for special events! Subscribe to our newsletter for more! Play big! Tell your colleagues about us! Huge thanks for being part of us! Very professional! Our site is fantastic! Following your latest events! Liked and registered! You're an undisputed expert! Will share with on social media! Thank you for your assistance! Very rewarding experience! Your efforts always lead to wins! mostbet играть mostbet Кыргызстан mostbet mostbet kz
mostbet РФ Your fortune awaits! Enjoy exclusive bonuses! Stay tuned for special events! Subscribe to our newsletter for more! Play big! Tell your colleagues about us! Huge thanks for being part of us! Very professional! Our site is fantastic! Following your latest events! Liked and registered! You're an undisputed expert! Will share with on social media! Thank you for your assistance! Very rewarding experience! Your efforts always lead to wins! mostbet играть mostbet Кыргызстан mostbet mostbet kz
mostbet Azərbaycan Hit the jackpot with us! Unlock your fortune! Play with ease on our licensed platform! Don't miss out on huge jackpots! Win big! Share the joy with friends! Grateful for your loyalty! Simply fantastic! Your efforts always result in victories! Eagerly awaiting your upcoming tournaments! Bookmarked your content in my browser! You're the best! Telling everyone! Thanks for the rewarding experience! Very exciting promotion! Your skills always are rewarded! mostbet ru mostbet mostbet today mostbet Киргизия
mostbet Azərbaycan Hit the jackpot with us! Unlock your fortune! Play with ease on our licensed platform! Don't miss out on huge jackpots! Win big! Share the joy with friends! Grateful for your loyalty! Simply fantastic! Your efforts always result in victories! Eagerly awaiting your upcoming tournaments! Bookmarked your content in my browser! You're the best! Telling everyone! Thanks for the rewarding experience! Very exciting promotion! Your skills always are rewarded! mostbet ru mostbet mostbet today mostbet Киргизия
¡La fortuna te acompaña! No pierdas la oportunidad de disfrutar de apuestas seguros y entretenidas en 1Win. 1win
¡La fortuna te acompaña! No pierdas la oportunidad de disfrutar de apuestas seguros y entretenidas en 1Win. 1win
Discover Bet9ja: The Best Betting Experience in Nigeria!
bet9ja old mobile Looking for a simple betting experience? Access the Bet9ja Old Mobile version and experience fast loading times and easy navigation. Bet on soccer, casino games, and virtual races without the complexities of the new version. Start betting in minutes!
old bet9ja
Discover Bet9ja: The Best Betting Experience in Nigeria!
bet9ja old mobile Looking for a simple betting experience? Access the Bet9ja Old Mobile version and experience fast loading times and easy navigation. Bet on soccer, casino games, and virtual races without the complexities of the new version. Start betting in minutes!
old bet9ja
Pinco Casino'da eğlence sizi bekliyor! pinco
Pinco Casino'da hızla kayıt olabilirsiniz. Bonuslu oyunlar ve yüksek ödeme oranları ile oyun deneyiminizi zenginleştirin. pinco
Pinco Casino'da eğlence sizi bekliyor! pinco
Pinco Casino'da hızla kayıt olabilirsiniz. Bonuslu oyunlar ve yüksek ödeme oranları ile oyun deneyiminizi zenginleştirin. pinco
Exciting casino options await you at Pin-Up! At Pin-Up Casino, you'll find engaging slot games, table games, sports wagers, and much more. Play premium games from top providers like NetEnt and Microgaming, and take your chance for huge wins!
pin up casino india Maximizing the ?450000 Welcome Bonus at Pin-Up Casino. The Pin Up casino welcome offer of up to ?450000 is generous, but how can you take full advantage of it? Have you received this offer yet? Let us know your strategies and tips for transforming the bonus into huge payouts. Let’s talk about how to make the most out of your first top-up!
Exciting casino options await you at Pin-Up! At Pin-Up Casino, you'll find engaging slot games, table games, sports wagers, and much more. Play premium games from top providers like NetEnt and Microgaming, and take your chance for huge wins!
pin up casino india Maximizing the ?450000 Welcome Bonus at Pin-Up Casino. The Pin Up casino welcome offer of up to ?450000 is generous, but how can you take full advantage of it? Have you received this offer yet? Let us know your strategies and tips for transforming the bonus into huge payouts. Let’s talk about how to make the most out of your first top-up!
Use Taya365 bonuses for maximum victories taya365 app Uncover the world of online gaming with Taya365 and enjoy top-notch live games. Register today to receive huge rewards and bonuses! Taya365 and enjoy a world of adventure. Whether you're into sports betting, there's something to enjoy. Get started and win big! taya365 app download
Use Taya365 bonuses for maximum victories taya365 app Uncover the world of online gaming with Taya365 and enjoy top-notch live games.
Register today to receive huge rewards and bonuses! Taya365 and enjoy a world of adventure. Whether you're into sports betting, there's something to enjoy. Get started and win big! taya365 app download
دائماً أراهن في 1xbet Sports Betting Egypt – مضمون ومربح! أوصي به الآن! Online betting in Egypt
دائماً أراهن في 1xbet Sports Betting Egypt – مضمون ومربح!
أوصي به الآن! Online betting in Egypt
Mostbet জুয়া – বিশাল প্ল্যাটফর্ম ভার্চুয়াল গেমস জন্য। Mostbet BD
Mostbet জুয়া – বিশাল প্ল্যাটফর্ম ভার্চুয়াল গেমস জন্য। Mostbet BD
Онлайн казино Mostbet – кең ауқымды мүмкіндіктер ұсынады спорттық ставкалар сүйінушілеріне.
mostbet kazakhstan
Онлайн казино Mostbet – кең ауқымды мүмкіндіктер ұсынады спорттық ставкалар сүйінушілеріне. mostbet kazakhstan
На данном сайте всегда доступна актуальная ссылка на мега мориарти, которая обновляется регулярно, чтобы вы могли без проблем попасть на нужную платформу.
На данном сайте всегда доступна актуальная ссылка на мега мориарти, которая обновляется регулярно, чтобы вы могли без проблем попасть на нужную платформу.
why 1xbet is the best online casino site for UAE players Thank you for your openness and openness! �� 400 Bad Request
why 1xbet is the best online casino site for UAE players Thank you for your openness and openness! �� 400 Bad Request
دائماً أراهن في 1xbet مصر – مضمون ومثالي! جربه بنفسك الآن! 1xBet تسجيل
دائماً أراهن في 1xbet مصر – مضمون ومثالي! جربه بنفسك الآن! 1xBet تسجيل
جربت 1xbet Mobile App Egypt – يتميز بواجهة ممتازة، السحب دون مشاكل!
1xBet عروض ترويجية
جربت 1xbet Mobile App Egypt – يتميز بواجهة ممتازة، السحب دون مشاكل!
1xBet عروض ترويجية
هل تحتاج إلى أشهر شركة رهان؟ 1xbet شركة الرهان يقدم أقوى الفرص ودفعات سريعة! Jogar FortuneRabbit sempre foi tão simples.
هل تحتاج إلى أشهر شركة رهان؟ 1xbet شركة الرهان يقدم أقوى الفرص ودفعات سريعة!
Jogar FortuneRabbit sempre foi tão simples.
دائماً أشارك في 1xbet Sports Betting Egypt – مريح ومربح! أنصح به الآن! 1xBet in Egypt
دائماً أشارك في 1xbet Sports Betting Egypt – مريح ومربح! أنصح به الآن! 1xBet in Egypt
هل تبحث عن أقوى كازينو أونلاين؟ 1xbet Egypt يقدم أفضل العروض ودفعات سريعة! 1xBet تطبيق الجوال
هل تبحث عن أقوى كازينو أونلاين؟ 1xbet Egypt يقدم أفضل العروض ودفعات سريعة! 1xBet تطبيق الجوال
دائماً أراهن في 1xbet مصر – مريح ومثالي!
أنصح به الآن! Apostas em futebol
دائماً أراهن في 1xbet مصر – مريح ومثالي! أنصح به الآن! Apostas em futebol