How to use right-click to open CMD

1. 右クリックでCMDを素早く起動する方法如何通过右键快速启动CMD¶


Most of time, when we want op the cmd. we should open CMD frst, and then copy the path ,use cd 'path' to start command.

Now,you can open CMD from the current path by modifying the registry.

Creat a ‘xx.reg’, copy the following code into it,and then run it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="open cmd"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\OpeCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="open cmd"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="open cmd"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="open cmd"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""

How to use right-click to open CMD

https://www.chenyu-k.com/2021/08/04/right-click/

Author

Chen Yu

Posted on

2021-08-04

Updated on

2023-11-14

Licensed under


:D 一言句子获取中...