新建登錄檔 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]
嫌名字長,可以,在**裡改了,或者安裝後進入登錄檔再修改資料值
計算機\hkey_classes_root\directory\background\shell\runas
ps,預設的shift 右鍵非管理員開啟cmd 也可以刪除 extend 項就 右鍵就顯示出來了。
解除安裝刪除:
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...
右鍵新增開啟命令列視窗,管理員命令列視窗
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 ...