首頁 > 軟體

Win10如何在右鍵選單新增「在此處開啟命令視窗」設定項?

2020-07-23 10:28:40

  Win10如何在右鍵選單中新增“在此處開啟命令視窗”設定項?在Win10創意者更新中,命令提示字元已被Powershell取代,然而很多用戶並不適應,如果大家還是想繼續使用命令提示字元,那麼可以在桌面右鍵選單中新增“在此處開啟命令視窗”設定項,那麼該如何操作呢?具體步驟請看下文。

  Win10如何在右鍵選單中新增“在此處開啟命令視窗”設定項?

  1、在設定前,系統右鍵選單如下圖所示,並沒有“在此處開啟命令視窗”;

  2、開啟記事本,將如下內容複製到記事本中;

  1. 01Windows Registry Editor Version 5.00
  2. 02[HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere]
  3. 03@="在此處開啟命令提示字元"
  4. 04"Icon"="cmd.exe"
  5. 05[HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand]
  6. 06@="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""
  7. 07[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]
  8. 08@="在此處開啟命令視窗"
  9. 09"Icon"="cmd.exe"
  10. 10[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]
  11. 11@="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""
  12. 12[HKEY_CLASSES_ROOTDriveshellOpenCmdHere]
  13. 13@="在此處開啟命令視窗"
  14. 14"Icon"="cmd.exe"
  15. 15[HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand]
  16. 16@="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""
  17. 17[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHere]
  18. 18@="在此處開啟命令視窗"
  19. 19"Icon"="cmd.exe"
  20. 20[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHerecommand]
  21. 21@="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""
複製程式碼
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere] @="在此處開啟命令提示字元" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere] @="在此處開啟命令視窗" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTDriveshellOpenCmdHere] @="在此處開啟命令視窗" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHere] @="在此處開啟命令視窗" "Icon"="cmd.exe" [HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHerecommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

IT145.com E-mail:sddin#qq.com