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


当前回答

这个答案适用于windows 10。

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

and

其他回答

如果您使用的是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来获得相同的功能。

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

为什么这么多的设置,对于这个简单的事情,当你在路径在cmd输入

start .

并按Enter

如果你从任务栏启动cmd,这是你需要做的:

在命令提示符上右键单击——>——>属性

然后在属性窗口中更改Start in的值:

此解决方案不适用于以管理员身份打开命令提示符

在Windows下到特定的文件夹,然后单击文件资源管理器路径并删除它,然后键入cmd并单击enter..在CMD中,您的特定文件夹及其路径将打开..