I always seem to be needing a command prompt and right clicking on a directory and opening a command prompt with the path already set to that directory is very handy.
The contents of this post may also be found on various sites on the internet and I am only writing it here specially for me to remember it in the future,
when I reinstall Windows :).
I have found this post which goes through a seemingly exhaustive process of describing all methods to add the shortcut to the command prompt in the context menu:
http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm.
I personally prefer manually creating a key in the Windows registry, under [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell].
To make it easier, I have exported the keys and all you need to do is create a new file, say with Notepad and assign it a .reg extension (not .reg.txt )
and copy the following lines in the new file and double-click it.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Command Prompt"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="cmd.exe /k pushd %1"
Otherwise, open the registry editor and browse to [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell].
Expand this key and create a new key named
Command Prompt.
Under the newly created
Command Prompt create a new key and name it
command.
Double click the
Default entry under
command and assign it the value:
cmd.exe /k pushd %1
And that will do the trick.
Hopefully, next time I'll remember...
Niciun comentariu:
Trimiteți un comentariu