Open the command line with the right mouse button and go directly to the current directory

Source: Internet
Author: User
Tags using git

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.