我怎样才能在一个特定的位置打开一个cmd窗口,而不必一直导航到我想要的目录?


当前回答

如果您使用的是Windows Vista或更高版本,请按住Shift键右键单击资源管理器中的文件夹图标,然后单击“在此打开命令窗口”或“在此打开PowerShell窗口”上下文菜单选项。

如果你已经在你想要的文件夹中,你可以执行以下操作之一:

[only Win8+] Click the Explorer Ribbon's File button, then click on "Open command window here" or "Open PowerShell window here". Shift-right-click on the background of the Explorer window, then click on "Open command window here" or "Open PowerShell window here". (recommended by Kate in the comments) [only Vista or Win7] Hold down Shift when opening the Explorer File menu, then click on "Open command window here". If you can't see the menu bar, open the File menu by pressing Alt-Shift-F - Alt-F to open the File menu, plus Shift.

对于Windows XP,使用dF提到的PowerToy来获得相同的功能。

其他回答

试试微软的这个“强力玩具”吧:

此处打开命令窗口 这个PowerToy增加了一个“打开命令” “窗口此处”上下文菜单选项打开 文件系统文件夹,给你一个 快速打开命令窗口的方法 (cmd.exe)指向所选的 文件夹中。

编辑:此软件将不能工作在任何版本的Windows除了Windows XP。

为了在windows系统中获得更好的终端使用体验,可以使用cmder作为快捷方式:

下载cmder到你的系统 使快捷方式 type path_of_the_cder /START target_path_wish_to_run . type path_of_the_cder /START

例如:

\用户\<用户名>i\AppData\漫游\ cder \ cder .exe /START C:\SOURCE\

这个答案适用于windows 10。

在文件夹中创建一个命令提示符快捷方式,然后右键单击该快捷方式

and

假设在文件资源管理器中打开了目标目录/文件夹,执行以下操作:

单击地址栏,或者按Alt+D 现在,当地址栏高亮显示时,在栏中键入cmd。 按Enter键

您将注意到该文件夹中的命令提示符

如果你使用全面指挥官,在底部有一个字段。它显示您当前所在的活动目录,并将在该目录中运行输入的命令。