• 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

  • 相关阅读:
    cli create ssl certkey
    开启HSTS让浏览器强制跳转HTTPS访问
    Down State Flush Feature
    tasklist、taskkill命令使用
    findstr 命令使用
    【批处理学习笔记】第十一课:常用DOS命令(1)
    【批处理学习笔记】第十课:批处理符号(3)
    【批处理学习笔记】第九课:批处理符号(2)
    【批处理学习笔记】第八课:批处理符号(1)
    【批处理学习笔记】第七课:简单的批处理命令(6)
  • 原文地址:https://www.cnblogs.com/hwli/p/10056723.html
Copyright © 2020-2023  润新知