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]

    保存 文件名为 Add_Open_Command_Window_Here_as_Administrator.reg
    然后双击执行就可以了。

    卸载
    类似上面的,执行下面注册表命令就可以了:

    Windows Registry Editor Version 5.00

    [-HKEY_CLASSES_ROOTDirectoryshell unas]

    [-HKEY_CLASSES_ROOTDirectoryBackgroundshell unas]

    [-HKEY_CLASSES_ROOTDriveshell unas]

    [-HKEY_CLASSES_ROOTLibraryFolderackgroundshell unas]
    ~



  • 相关阅读:
    求两条链表有无交点和第一个交点
    重载自增运算符(前置自增++p和后置自增p++)
    二叉排序树和平衡二叉树
    红黑树
    java学习攻略
    Intellij IDEA / IntelliJ
    ngrinder test
    eclipsejeekeplerSR2win32x86_64 jsonedit plugin
    向叶子文文的.net之路学习(大量的转载)
    微软发布机制(转)从浅入深
  • 原文地址:https://www.cnblogs.com/51net/p/11604942.html
Copyright © 2011-2022 走看看