SOURCE http://jingyan.baidu.com/article/22a299b51e7ad89e19376ad5.html
For computer veteran, in the process of using Windows system, often need to enter some commands in the CMD window to operate. But if each time is in the CMD window with the CD command to the corresponding folder directory, it is inconvenient, especially in the folder hierarchy more and with the premise of the Chinese directory. If you often use CMD, each time will therefore waste some time, in fact, there is a faster way to open cmd in the current directory, some ghost system in the package, the technician has been set up, if you do not have in the system, we can also add themselves.
Tools/Materials
Windows7 system
Registry Editor
Method OneWhile holding down the SHIFT key on your keyboard, right-click on the folder you want to manipulate (the DOS age is called the directory) and the "Open command Window Here" appears in the popup menu, and you can test it without pressing the SHIFT key.
Click to open the CMD window directly, the effect, directly enter your powerful command bar! (Some features in the Windows system are really not flattering).
Modifying registry methods
- 1
The above method is feasible in Windows7, but for lazy people, it is not refreshing to press the SHIFT key, we can add this function directly in the right mouse button by modifying the registry.
Copy the following into Notepad and save as a. reg file.
Windows Registry Editor Version 5.00
[Hkey_classes_root\folder\shell\cmd]
@= "Open cmd at this location"
[Hkey_classes_root\folder\shell\cmd\command]
@= "cmd.exe/k cd%1"
Save it as a file with a. reg extension. All files must be selected in the file type, otherwise the saved file will still be formatted as *.reg.txt, and the name of the file can be entered casually.
Double-click Import Registry!
You can open the cmd window and automatically enter the current path by opening the right mouse button on any folder.
How to delete
- 1
To remove this feature, add a "-" number directly before each registry entry for the registry file above, and then import it after saving.
If you have this feature on your system and you do not use any commands at all, this menu appears superfluous or can be deleted in this way.
Precautions
Method 2 is suitable for frequently used personal computers and is equipped with various usage environments.
Method 1 is suitable for temporary use on other computers.
It is not recommended to manually operate the registration form with a new computer.
Cmd:[1] Open the CMD command under the current folder