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


当前回答

在Windows下到特定的文件夹,然后单击文件资源管理器路径并删除它,然后键入cmd并单击enter..在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来获得相同的功能。

我知道有个更简单的方法。在开始菜单中找到cmd.exe,并将其作为快捷方式发送到桌面。然后右键单击它并选择属性。你会在“目标”下看到“开始”框。将该目录更改为您想要设置的任何目录。单击“确定”并启动桌面上的cmd.exe。在我看来,这是一个非常简单和确定的解决方案:)

只需在地址栏中输入cmd,它将在当前文件夹中打开。

Pushd命令设置当前文件夹。所以:

cmd /k "pushd D:\Music"

创建cmd.exe的快捷方式,params /S /K pushd "C:\YOUR FOLDER\"