mysql试用期过期解决方案

创建bat文件,然后粘贴下面代码:

@echo off
echo "开始删除Navicat Premium 12注册表试用期记录文件,请稍等……"
echo "正在删除 HKEY_CURRENT_USER\Software\PremiumSoft\Data "
reg delete "HKEY_CURRENT_USER\Software\PremiumSoft\Data" /f
setlocal enabledelayedexpansion
for /f "delims=: tokens=1,*" %%i in ('reg query "HKEY_CURRENT_USER\Software\Classes\CLSID"') do (
set /a index=0
set /a num=0
for /f "delims=: tokens=1,*" %%j in ('reg query %%i') do (
set /a index+=1
for %%a in (%%j) do (
if %%~nxa==Info if not %%j==%%i (
set /a num+=1
)
)
)
if !num! EQU 1 if !index! EQU 1 (
echo "正在删除 %%i "
reg delete "%%i" /f
)
)
echo "已完成删除Navicat Premium 12注册表试用期记录文件"

 

 

然后运行就行了

posted @ 2021-06-01 18:19  久龄  阅读(120)  评论(0编辑  收藏  举报