zoukankan      html  css  js  c++  java
  • 右键管理员身份打开 命令行cmd

    新建注册表 reg 文件输入命令:

    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOTDirectoryshell
    unas]
    
    [HKEY_CLASSES_ROOTDirectoryshell
    unas]
    @="Open command window here as Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOTDirectoryshell
    unascommand]
    @="cmd.exe /s /k pushd "%V""
    
    [-HKEY_CLASSES_ROOTDirectoryBackgroundshell
    unas]
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshell
    unas]
    @="Open command window here as Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshell
    unascommand]
    @="cmd.exe /s /k pushd "%V""
    
    
    
    [-HKEY_CLASSES_ROOTDriveshell
    unas]
    
    [HKEY_CLASSES_ROOTDriveshell
    unas]
    @="Open command window here as Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOTDriveshell
    unascommand]
    @="cmd.exe /s /k pushd "%V""
    
    
    
    [-HKEY_CLASSES_ROOTLibraryFolderackgroundshell
    unas]
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshell
    unas]
    "HasLUAShield"=""
    @="Open command window here as Administrator"
    
    [HKEY_CLASSES_ROOTLibraryFolderackgroundshell
    unascommand]

    双击 写入注册表

    -------------

    嫌名字长,可以,在代码里改了,或者安装后进入注册表再修改数据值

    计算机HKEY_CLASSES_ROOTDirectoryBackgroundshell unas

    ps,默认的shift 右键非管理员打开cmd 也可以删除 extend 项就 右键就显示出来了。

     

    卸载删除:

    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOTDirectoryshell
    unas]
    
    [-HKEY_CLASSES_ROOTDirectoryBackgroundshell
    unas]
    
    [-HKEY_CLASSES_ROOTDriveshell
    unas]
    
    [-HKEY_CLASSES_ROOTLibraryFolderackgroundshell
    unas]
    ~                                                              
    

      

    转载:鼠标右键打开命令行cmd(管理员身份)

  • 相关阅读:
    QTP的那些事连接oracle的方法
    QTP的那些事判定页面是否存在某个文本内容
    java计算的小数加减法计算有错误解决
    自由者-Hdsome安身立鸣博客园
    转:经典URL重写
    常见的类整理
    TD tree体验
    《大道至简》读后感
    SqlDataReader使用
    ExecuteScalar
  • 原文地址:https://www.cnblogs.com/willowj/p/8032171.html
Copyright © 2011-2022 走看看