win10 在當前目錄下 開啟cmd

2022-04-17 17:21:01 字數 1051 閱讀 9966

windows7 : 

按住 shift 鍵 , 右鍵 就有該選項。

windows10 : 

執行下面的 登錄檔檔案:

該登錄檔檔案內容如下:

windows registry editor version 5.00

[hkey_classes_root\directory\shell\runas]

@="open cmd here as admin"

"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 cmd here as admin"

"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 cmd here as admin"

"hasluashield"=""

[hkey_classes_root\drive\shell\runas\command]

複製上面的**,儲存至txt, 並更改字尾為 .reg ,如cmd.reg

雙擊執行 ,即將該命令註冊到登錄檔。 

然後 在當前資料夾下右鍵 就可以看到 「open cmd here as admin」 。

win10 在當前目錄下 開啟cmd

windows7 按住 shift 鍵 右鍵 就有該選項。windows10 執行下面的 登錄檔檔案 該登錄檔檔案內容如下 windows registry editor version 5.00 hkey classes root directory shell runas open cmd he...

Win10在當前目錄快速開啟cmd的方法

1.按住shift鍵,滑鼠右鍵快捷方式,先開啟powershell視窗 2.輸入 start cmd 回車 3.這樣就可以開啟cmd視窗了,並且cmd的工作目錄就是當前的目錄 1.新建乙個txt文件檔案,在裡面輸入以下內容 windows registry editor version 5.00 h...

win10右鍵cmd開啟當前目錄

於 windows registry editor version 5.00 hkey local machine software classes directory background shell cmd here 在cmd開啟 icon cmd.exe hkey local machine ...