How to change the default current path of the CMD Command Prompt

Source: Internet
Author: User

Method 1: Use "Computer Management" to modify


Right-click "my computer" and select "manage" to bring up the "Computer Management" window. Expand "System Tools> local users and groups" in the left-side directory tree.
→ User
", Double-click the user name used in the right window to find the" configuration file "tab, select" local path "in" main file ", and enter
"C:/" (of course, you can change it to another path), and click "OK" to return. It takes effect immediately after you log out or restart the system.

 

Method 2: Modify using shortcuts

 

The previous method is global to the user system, that is, whether you open the "command prompt" through the "cmd" command or shortcut, the default path is the specified new path. Of course, you can also add parameters to the shortcut to temporarily change the default path.

Open "Start> program> attachment", right-click "command prompt", select "properties" from the menu, and click "target" on the "shortcut" tab ", enter the path and click OK to exit. The "command prompt" activated in this shortcut later, the default path is the path in the Parameter

======================================

Right-click the folder and choose cmd.

Save the following contentCmd. Reg
:

Windows Registry Editor Version 5.00

[Hkey_classes_root/directory/Shell/CMD]
@ = "Command prompt"

[Hkey_classes_root/directory/Shell/CMD/command]
@ = "Cmd.exe/k/" cd % L /""

Run cmd. Reg and click "yes" when asking whether to import the data ".

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.