多數人開啟命令提示字元習慣用 Win+R → cmd,但 Windows 7 隱藏一個更快、更精準的進入點:**在總管/桌面空白處按住 Shift + 右鍵,即出現「在此處開啟命令視窗」**,直接以當前資料夾路徑為工作目錄啟動 CMD,免去手動 cd 切換路徑之苦。
D:\Projects\Code)。D:\Projects\Code>。cd /d 切換盤符。C:\Users\名稱\Desktop 為工作目錄。若想不按 Shift 就看到該選項,可匯入以下註冊表:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdhere]
@="在此處開啟命令視窗"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdhere\command]
@="cmd.exe /s /k pushd \"%V\""
存為 cmdhere.reg 雙擊匯入,即永久顯示於右鍵選單。