三種方法在當前目錄下開啟cmd命令視窗

2022-03-04 12:33:10 字數 443 閱讀 7868

執行npm的時候,每次都要cd到目錄,很麻煩,所以總結了三種在當前目錄下直接開啟cmd視窗的方法,供以後開發時參考,相信對其他人也有用。

在當前目錄按住shift再右鍵。

會看到右鍵選單裡有乙個「在此處開啟命令視窗」選項,點選即可。

也可以用快捷鍵操作:shift+右鍵 => 按w鍵 => 按enter鍵。(這種方法是最快的)

在當前目錄上面的路徑顯示框中輸入cmd,然後回車即可。

假如你的當前目錄是f:\workshop\resume的話,那麼建立乙個bat檔案,寫上如下內容然後點選執行即可。

f:

cd workshop

cd resume

start

就算你的當前目錄並不是f:\workshop\resume,你也可以用這種方法開啟。

win10 在當前目錄下 開啟cmd

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

win10 在當前目錄下 開啟cmd

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

右鍵選單在當前目錄下開啟cmd

通過新增登錄檔項,實現右鍵 在此處開啟cmd命令列 登錄檔位置 hkey classes root directory background shell 鍵值名稱 showbasedonvelocityid 顯式標識 hidebasedonvelocityid 隱式標識 鍵值 639bc8 十六進製...