We often need to execute some DOS commands in a directory when we are using Windows, usually we will type: cmd in the Start menu, open the DOS command window, and then the CD to the target operation directory, each time it is more troublesome. Here is a small way to directly open the DOS command window in the explorer.
I. Right-click menu for any directory or file not selected
1. Open "Registry Editor" to find "Hkey_classes_root\directory\background\shell"
2. New Item "Open at command Prompt"
3. In the above item, create new Item "command" again
:
4. Add a value for the item command: cmd.exe/s/k pushd "%V"
Effect:
Two. Add the right-click menu for the selected directory
1. Also open Registry Editor to find the item "Hkey_classes_root\folder\shell"
2. Follow the same procedure
How to add cmd in the Windows Explorer right-click menu