zoukankan      html  css  js  c++  java
  • Beyond Compare 3添加右键菜单

    目前是在Beyond Compare 3.1.9版本上试验可行,其他版本上尚未测试。

    添加右键菜单步骤:

    1.新建为.bat后缀的文本,将下面“添加右键菜单批处理”复制到此文本中。

    2.将批处理移动到Beyond Compare 3安装目录。

    3.双击批处理开始执行。

    4.打开Beyond Compare 3软件,工具->选项->启动,勾选“在资源管理器关联菜单中显示Beyond Compare”。

    5.重启电脑。

    6.取消右键菜单批处理也需要在Beyond Compare 3安装目录下执行。

    添加右键菜单批处理

    @ECHO OFF
    rem 请将此脚本放在BC的目录执行,例如 F:SoftwareBeyond Compare
    
    REM 将当前路径设为变量
    SET BC3PATH=%~DP0
    REM 创建用户配置文件,关闭初次启动程序时的设置向导
    if exist "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3" RD /q /s "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3"
    IF NOT EXIST "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3" MD "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3"
    COPY /Y NUL "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3BCState.xml"
    (
    ECHO ^<?xml version="1.0" encoding="UTF-8"?^>
    ECHO ^<!-- Produced by Beyond Compare 3 from Scooter Software --^>
    ECHO ^<BCState^>
    ECHO ^<TBcState^>
    ECHO ^<FirstStartup Value="False"/^>
    ECHO ^<FormPosStr Value="110;111;980;737"/^>
    ECHO ^</TBcState^>
    ECHO ^</BCState^>
    ) >> "%USERPROFILE%Application DataScooter SoftwareBeyond Compare 3BCState.xml"
    
    REM 注册右键
    reg add "HKLMSoftwareScooter SoftwareBeyond Compare 3" /v "ExePath" /t REG_SZ /d "%cd%BCompare.exe" /f
    rem reg add "HKLMSoftwareScooter SoftwareBeyond Compare 3" /v "Version" /t REG_SZ /d "3.1.7.10865" /f
    reg add "HKCUSoftwareScooter SoftwareBeyond Compare 3" /v "ExePath" /t REG_SZ /d "%cd%BCompare.exe" /f
    rem reg add "HKCUSoftwareScooter SoftwareBeyond Compare 3" /v "Version" /t REG_SZ /d "3.1.7.10865" /f
    reg add "HKCR.bcpkg" /ve /t REG_SZ /d "BeyondCompare.SettingsPackage" /f
    reg add "HKCRBeyondCompare.SettingsPackage" /ve /t REG_SZ /d "Beyond Compare Settings Package" /f
    reg add "HKCRBeyondCompare.SettingsPackageDefaultIcon" /ve /t REG_SZ /d "%cd%BCompare.exe,0" /f
    reg add "HKCRBeyondCompare.SettingsPackageshellopencommand" /ve /t REG_SZ /d ""%cd%BCompare.exe" "%%1"" /f
    reg add "HKCR.bcss" /ve /t REG_SZ /d "BeyondCompare.Snapshot" /f
    reg add "HKCRBeyondCompare.Snapshot" /ve /t REG_SZ /d "Beyond Compare Snapshot" /f
    reg add "HKCRBeyondCompare.SnapshotDefaultIcon" /ve /t REG_SZ /d "%cd%BCompare.exe,0" /f
    reg add "HKCRBeyondCompare.Snapshotshellopencommand" /ve /t REG_SZ /d ""%cd%BCompare.exe" "%%1"" /f
    reg add "HKLMSystemCurrentControlSetServicesEventLogApplicationBeyond Compare 3" /v "EventMessageFile" /t REG_SZ /d "%cd%BCompare.exe" /f
    reg add "HKLMSystemCurrentControlSetServicesEventLogApplicationBeyond Compare 3" /v "TypesSupported" /t REG_DWORD /d 7 /f

    取消右键菜单批处理

    reg delete "HKLMSoftwareScooter Software" /f
    reg delete "HKCUSoftwareScooter Software" /f
    reg delete "HKCR.bcpkg" /f
    reg delete "HKCRBeyondCompare.SettingsPackage" /f
    reg delete "HKCR.bcss" /ve /t REG_SZ /d "BeyondCompare.Snapshot" /f
    reg delete "HKCRBeyondCompare.Snapshot" /f
    reg delete "HKLMSystemCurrentControlSetServicesEventLogApplicationBeyond Compare 3" /f
    pause

    参考链接:https://www.cnblogs.com/mq0036/p/3902249.html

  • 相关阅读:
    Hello,Cnblogs,I'm Kxia
    运维
    CRT 操作数据库乱码
    STM32 各引脚功能
    遍历结果集
    更换税控服务器主板后,重新申请注册码
    修改远程桌面端口号
    nginx 设置开机启动
    windows 日志清理批处理 设置到计划任务就可以每天清理日志了
    按关键字查找文件
  • 原文地址:https://www.cnblogs.com/hwli/p/10056723.html
Copyright © 2011-2022 走看看