按shift鍵調出命令列的指令碼

2022-06-17 22:30:19 字數 542 閱讀 5238

開啟notepad++,貼上以下命令,並將檔案命名為opencmdhere.reg(注意:檔案編碼格式為ucs-2 little endian,否則會導致中文亂碼),再雙擊開啟即可

windows registry editor version 5.00

[hkey_classes_root\directory\background\shell\opencmdhere]

@="在此處開啟命令列視窗"

"extended"=""

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

@="powershell -windowstyle hidden -command \"start-process cmd.exe -argumentlist '/s,/k, pushd,%v' -verb runas\""

這裡是通過隱藏的powershell視窗來調起cmd的,開啟的時候會有使用者賬戶控制彈窗,以確認管理員身份

Mac git命令列按tab鍵自動補全

1.安裝bash completion brew install bash completion brew tap homebrew completions 2.在使用者目錄.bash profile新增如下指令碼 if f brew prefix etc bash completion then ...

SQL 命令列指令碼

show databases use 資料庫名 select database create database 資料庫名 charset utf8 例 create database python charset utf8 drop database 資料庫名 例 drop database pyt...

linux 命令列指令碼

1.cd 到某個路徑 執行某個程式 cd home hil hilexe hmi2.ssh 命令 echo 123456 sudo s ssh 192.168.1.18123456是sudo的密碼 ssh中執行多個命令用 隔開 3.adb 命令 adb push home hil hilexe tr...