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 ".