右鍵管理員身份開啟 命令列cmd

2022-01-11 17:33:46 字數 1586 閱讀 3638

新增到登錄檔

將下面命令儲存為reg檔案:

windows registry editor version 5.00

[-hkey_classes_root\directory\shell\runas]

[hkey_classes_root\directory\shell\runas]

@="open command window here as administrator"

"hasluashield"=""

[hkey_classes_root\directory\shell\runas\command]

@="cmd.exe /s /k pushd \"%v\""

[-hkey_classes_root\directory\background\shell\runas]

[hkey_classes_root\directory\background\shell\runas]

@="open command window here as administrator"

"hasluashield"=""

[hkey_classes_root\directory\background\shell\runas\command]

@="cmd.exe /s /k pushd \"%v\""

[-hkey_classes_root\drive\shell\runas]

[hkey_classes_root\drive\shell\runas]

@="open command window here as administrator"

"hasluashield"=""

[hkey_classes_root\drive\shell\runas\command]

@="cmd.exe /s /k pushd \"%v\""

[-hkey_classes_root\libraryfolder\background\shell\runas]

[hkey_classes_root\libraryfolder\background\shell\runas]

"hasluashield"=""

@="open command window here as administrator"

[hkey_classes_root\libraryfolder\background\shell\runas\command]

儲存 檔名為 add_open_command_window_here_as_administrator.reg

然後雙擊執行就可以了。

解除安裝類似上面的,執行下面登錄檔命令就可以了:

windows registry editor version 5.00

[-hkey_classes_root\directory\shell\runas]

[-hkey_classes_root\directory\background\shell\runas]

[-hkey_classes_root\drive\shell\runas]

[-hkey_classes_root\libraryfolder\background\shell\runas]

~

右鍵管理員身份開啟 命令列cmd

新建登錄檔 reg 檔案輸入命令 windows registry editor version 5.00 hkey classes root directory shell runas hkey classes root directory shell runas open command win...

右鍵新增開啟命令列視窗,管理員命令列視窗

windows registry editor version 5.00 將此內容儲存為 reg,unicode編碼 bin以ff fe打頭 若原先有,先刪除原來的 hkey classes root directory background shell opencmdhere hkey class...

管理員身份執行cmd

安裝apache時,遇到以管理員身份執行cmd,記錄一下遇到的問題。配置完apache的conf httpd.conf 以管理員身份執行cmd的方法 1.在c windows system32找到cmd右擊選擇以管理員身份執行,然後切換到apache安裝目錄下的bin,執行命令 httpd.exe ...