zoukankan      html  css  js  c++  java
  • Navicat 12.0.29 清除试用记录的方法

    @echo off
    
    echo
    echo
    echo 适用于 Navicat 12.0.29
    echo 正在清除试用信息。。。
    
    for /f %%i in ('reg query HKCUSoftwareClassesCLSID') do call:checkDelCLSID %%i
    
    reg delete HKCRNavicatProfileBackup /f 1>nul 2>nul 
    reg delete HKCRNavicatProfileBatchJob /f 1>nul 2>nul
    reg delete HKCRNavicatProfileDataSync /f 1>nul 2>nul
    reg delete HKCRNavicatProfileExport /f 1>nul 2>nul
    reg delete HKCRNavicatProfileImport /f 1>nul 2>nul
    reg delete HKCRNavicatProfileModel /f 1>nul 2>nul
    reg delete HKCRNavicatProfileStructureSync /f 1>nul 2>nul
    reg delete HKCRNavicatProfileTransfer /f 1>nul 2>nul
    reg delete HKCUSoftwarePremiumSoft /f 1>nul 2>nul
    
    rmdir /S /Q C:UsersXXXXDocumentsNavicat
    rmdir /S /Q C:UsersXXXXAppDataLocalTempNavicatCloud
    
    echo
    echo
    echo 清除试用信息成功!
    echo 请重新运行Navicat。
    echo
    pause
    exit
    
    
    :checkDelCLSID
    echo filtering %1
    echo %1|findstr "{CAFEEFAC-" 1>nul 2>nul
    set result=%errorlevel%
    if %result%==0 goto:eof
    
    echo checking %1
    reg query %1Info 1>nul 2>nul
    set result=%errorlevel%
    if %result%==1 goto:eof
    
    echo deleteing %1
    reg delete %1 /f 1>nul 2>nul
    
    goto:eof
    
  • 相关阅读:
    redis哨兵模式
    zookeeper 日志输出到指定文件夹
    Zookeeper运维问题集锦
    应用层、传输层、网络层常用协议
    链表排序
    集线器、交换机、路由器的区别
    C链表
    virtio/pass-through
    shell脚本实例
    KVM虚拟化相关-进阶
  • 原文地址:https://www.cnblogs.com/byso/p/9679462.html
Copyright © 2011-2022 走看看