win10 right click cmd to open the current directory

Explanation

Reprinted at https://blog.csdn.net/linysuccess/article/details/79179799

step

  • Create a new txt file and enter the following
Windows Registry Editor Version 5.00
 
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
 
@="在cmd打开"
"Icon"="cmd.exe"
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
 
@="\"C:\\Windows\\System32\\cmd.exe\""
 
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt]
 
@="在cmd打开"
 
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt\command]
 
@="\"C:\\Windows\\System32\\cmd.exe\" \"cd %1\""
 
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
 
@="在cmd打开"
"Icon"="cmd.exe"
 
 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
 
@="\"C:\\Windows\\System32\\cmd.exe\""
  • Change the file suffix to reg, and then double-click to confirm.

problem

There may be a garbled problem. This involves whether the Windows encoding and the encoding used by Notepad are the same way. If there is garbled code, directly open the registry editor and modify the above text one by one.

Guess you like

Origin www.cnblogs.com/mirage-mc/p/12758228.html