zoukankan      html  css  js  c++  java
  • 给右键菜单添加:以管理身份用记事本打开文件。

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\dllfile\shell]
    
    [HKEY_CLASSES_ROOT\dllfile\shell\Register]
    
    [HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe regsvr32 \"%1\""
    
    [HKEY_CLASSES_ROOT\dllfile\shell\unRegister]
    
    [HKEY_CLASSES_ROOT\dllfile\shell\unRegister\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe regsvr32 /u \"%1\""
    
    [HKEY_CLASSES_ROOT\ocxfile\shell]
    
    [HKEY_CLASSES_ROOT\ocxfile\shell\Register]
    
    [HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe regsvr32 \"%1\""
    
    [HKEY_CLASSES_ROOT\ocxfile\shell\unRegister]
    
    [HKEY_CLASSES_ROOT\ocxfile\shell\unRegister\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe regsvr32 /u \"%1\""
    
    [HKEY_CLASSES_ROOT\*\shell]
    
    [HKEY_CLASSES_ROOT\*\shell\notepad from administrator]
    @="Notepad from Admin"
    
    [HKEY_CLASSES_ROOT\*\shell\notepad from administrator\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe C:\\Windows\\System32\\notepad.exe \"%1\""
    
    [HKEY_CLASSES_ROOT\folder\shell\cmd]
    @="Command from Admin"
    
    [HKEY_CLASSES_ROOT\folder\shell\cmd\command]
    @="D:\\MyProgram\\SysinternalsSuite\\sudo.exe C:\\Windows\\System32\\cmd.exe /k cd \"%1\""

    所用到的sudo.exe:下载

    Tty725 说:
    欢迎转载,但请注明内容的来源或URL;
    [转]”篇章,必须保留原始来源且勿添加本blog指向。
  • 相关阅读:
    自动装配有哪些局限性?
    zk 节点宕机如何处理?
    Zookeeper 的 java 客户端都有哪些?
    BeanFactory – BeanFactory 实现举例?
    Spring 配置文件?
    什么是 Spring IOC 容器?
    Spring 框架中的单例 bean 是线程安全的吗?
    ApplicationContext 通常的实现是什么?
    什么是通知Advice?
    spring 支持哪些 ORM 框架?
  • 原文地址:https://www.cnblogs.com/Tty725/p/2073186.html
Copyright © 2011-2022 走看看