• windows 设置右键菜单


    在文件 右键菜单中添加

    xx.reg:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT*shellvscode]
    "Icon"="D:\tools\MicrosoftVSCode\Code.exe"
    @="Edit with VsCode"
    
    [HKEY_CLASSES_ROOT*shellvscodecommand]
    @=""D:\tools\MicrosoftVSCode\Code.exe" "%1""
    

    在桌面 右键菜单中添加

    xx.reg:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscode]
    @="Open VsCode"
    "Icon"=""D:\tools\MicrosoftVSCode\Code.exe""
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
    @="D:\tools\MicrosoftVSCode\Code.exe"
    

    在目录 右键菜单中添加

    xx.reg:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryshellvscode]
    @="Open with VsCode"
    "Icon"=""D:\tools\MicrosoftVSCode\Code.exe""
    
    [HKEY_CLASSES_ROOTDirectoryshellvscodecommand]
    @="D:\tools\MicrosoftVSCode\Code.exe %1"
    

    只在.txt的菜单中创建

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTSystemFileAssociations.txtshellHello TXT]
    
    [HKEY_CLASSES_ROOTSystemFileAssociations.txtshellHello TXTcommand]
    

    二级菜单

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen]
    @=""
    "Position"="Middle"
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshell]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellCE]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellCEcommand]
    @="C:\CE\Cheat Engine.exe"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellChrome]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellChromecommand]
    @="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellEdge]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellEdgecommand]
    @="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellVS 2019]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellVS 2019command]
    @="D:\my-tools\MicrosoftVisualStudio\IDE\Common7\IDE\devenv.exe"
    

    将cmder添加到目录命令

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryshellCmder]
    "Extended"=""
    "NoWorkingDirectory"=""
    "ShowBasedOnVelocityId"=dword:00639bc8
    
    [HKEY_CLASSES_ROOTDirectoryshellCmdercommand]
    @="cmder.exe"
    

    rmrf.reg

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryshell
    mrf]
    @="rm -rf"
    "Position"="Bottom"
    
    [HKEY_CLASSES_ROOTDirectoryshell
    mrfcommand]
    @="cmd /C "del /q "%1" && rd /s /q "%1"""
    
    
    [HKEY_CLASSES_ROOT*shell
    mrf]
    @="rm -rf"
    "Position"="Bottom"
    
    [HKEY_CLASSES_ROOT*shell
    mrfcommand]
    @="cmd /C "del /q "%1" && rd /s /q "%1"""
    
  • 相关阅读:
    搭建自己的博客(三十一):为评论以及回复添加邮箱提醒
    gl-transitions 【68个转场效果图】
    frei0r-1.7.0 20191207-0d4b342 DLLs
    Win10资源管理器始终使用详细视图模式
    gcc posix sjij for MSYS 9.2.1+
    mingw32-gcc-9.2.1-i686-posix-sjlj-20190904-8ba5c53
    Newtonsoft.Json高级用法
    在线文档预览方案-office web apps
    我的前端学习历程
    我是怎么使用最短路径算法解决动态联动问题的
  • 原文地址:https://www.cnblogs.com/ajanuw/p/13625052.html
Copyright © 2020-2023  润新知