Two ways to make your command line run more efficiently.

  
Graphical interface and mouse click operation are already dominant. Today, Microsoft still retains the command line mode to prove that it still has its place. In fact, this is also the case. Sometimes a command can Simplify many steps. Today, Xiaobian will explain to you how to open your command line more efficiently under Windows. Now you can provide two ways to open the command line in the current directory as efficiently as in Linux.
Method 1:
Press Shift + right mouse button in the current directory, you can see a similar option to open the command line here, if you want to remove the shift, right click the mouse button to have this option, then you need to modify your Registry,
Go to the registry location HKEY_CLASSES_ROOT\\Directory\\shell\\cmd Delete the Extended key value below, if you want the drive and desktop to do the same, HKEY_CLASSES_ROOT\\Driver\\shell\\cmd and
HKEY_CLASSES_ROOT\\ The Extended key value in Directory\\Background\\shell\\cmd can be removed.
Method 2:
With shortcut keys, of course, the popular Autohotkey will be used. The Auothotkey code is as follows:
SetTitleMatchMode RegEx
return
; Stuff to do when Windows Explorer is open
;
#IfWinActive ahk_class ExploreWClass| CabinetWClass
; open ‘cmd’ in the current directory
;
#c::
OpenCmdInCurrent()
return
#IfWinActive
; Opens the command shell ‘ Cmd’ in the directory browsed in Explorer.
; Note: expecting to be run when the active window is Explorer.
;
OpenCmdInCurrent()
{
; This is required to get the Full path of the file from the address bar
WinGetText, full_path, A
; Split on newline (`n)
StringSplit, word_array, full_path, `n
; Take the first element from the array
Copyright © Windows knowledge All Rights Reserved