Requirements:
When we develop command-line-related operations using Git, one of the most common repeats is when we open the command line and then go to the project's folder with the CD command (each time the input path is troublesome), and then execute some of the required commands. The problem we need to solve is to avoid the "CD path" operation.
Workaround:
1, any position input Win+r combo key call out Run window
2, enter regedit to open the registry.
Locate the Folders folder, click the shortcut, tap it, select it, enter F, and automatically enter the subfolder that starts with F.
Hkey_local_machine/software/classes/folder/shell
Locate the folder "Shell", then right click, create a new item (key), then rename it to command prompt , then select Command Prompt, right click, create a new string value (this is to make the icon of the program appear in the right-click menu)
Name the string value icon, and then double-click the value in the edit:C:\Windows\System32\cmd.exe , which is the path to the command prompt.
Then go back to the command prompt folder on the left, right-create a new item, rename to command , and on the right of the edit the value is:C:\Windows\System32\cmd.exe cd "%1"
After this success, we can go back to the desktop and test it. Right click on the computer:
Right click on a folder
The directory is then automatically entered on the command line.
Update a simple method:
Hold down the SHIFT key while you right-click to see an option: Open the Command Window here (W)
Open the command line with the right mouse button and go directly to the current directory