使Windows Vista中的文件夹始终显示“此处命令提示符”

We’ve previously explained how you can open a command prompt by holding down the Shift key and right-clicking on a folder or the desktop… but how do you make that item show up without having to hold down the shift key?

前面我们已经解释了如何通过按住Shift键并在文件夹或桌面上单击鼠标右键来打开命令提示符。但是,如何在不按住Shift键的情况下显示该项目呢?

There’s a simple registry hack you can do that will enable “Open Command Window Here” item without holding down the shift key:

您可以执行一个简单的注册表修改,而无需按住Shift键就可以启用“在此处打开命令窗口”项:

使Windows Vista中的文件夹始终显示“此处命令提示符”

You can either manually edit the registry, or use the downloadable registry hack files to do it.

您可以手动编辑注册表,也可以使用可下载的注册表黑客文件来完成。

Manual Registry Hack

手动注册表**

Open up regedit.exe through the start menu search or run box, and then browse down to the following key to add the right-click menu to drive icons:

通过开始菜单搜索或运行框打开regedit.exe,然后向下浏览至以下键以添加右键单击菜单来驱动图标:

HKEY_CLASSES_ROOT\Drive\shell\cmd

HKEY_CLASSES_ROOT \ Drive \ shell \ cmd

使Windows Vista中的文件夹始终显示“此处命令提示符”

Rename the “Extended” key on the right to something else, like “Extended-Orig”. (Note that you could simply delete the value, but renaming it ensures that you can quickly rename it back to reverse the change)

将右侧的“扩展”键重命名为其他名称,例如“扩展原件”。 (请注意,您可以简单地删除该值,但是重命名可确保您可以快速将其重命名以撤消更改)

To add the item to the folder context menu, browse down to the following key:

要将项目添加到文件夹上下文菜单中,请向下浏览至以下键:

HKEY_CLASSES_ROOT\Directory\shell\cmd

HKEY_CLASSES_ROOT \ Directory \ shell \ cmd

使Windows Vista中的文件夹始终显示“此处命令提示符”

And rename the same “Extended” key here. The changes should be immediate.

并在此处重命名相同的“扩展”键。 更改应立即进行。

Downloadable Registry Hack

可下载的注册表黑客

Simply download, extract, and double-click on the EnableCommandPromptHereAlways.reg file to enter the information into the registry. There’s also an included file to reverse the change.

只需下载,解压缩并双击EnableCommandPromptHereAlways.reg文件,即可将信息输入注册表。 还有一个包含的文件可以撤消更改。

Download EnableCommandPromptHereAlways Registry Hack

下载EnableCommandPromptHereAlways Registry Hack

翻译自: https://www.howtogeek.com/howto/windows-vista/make-command-prompt-here-always-display-for-folders-in-windows-vista/