如何在Windows中更改目录 [英] how to change directory in windows

查看:222
本文介绍了如何在Windows中更改目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 cmd.exe (C:\WINDOWS\System32\cmd.exe),我必须将我的当前目录更改为D: \ temp即D盘中的临时文件夹。

I'm using cmd.exe (C:\WINDOWS\System32\cmd.exe) and I have to change my current directory to "D:\temp" i.e. temp folder in the D drive.

当我尝试 cd p>

When I try to cd nothing happens.

C:\> cd D:\temp

C:\>

我不知道该怎么做。即使按选项卡键也不会提供任何提示。我从来没有理由使用cmd.exe直到现在,当我有。

I don't know what else to do here. Even pressing tab key does not give any hints. I have never got the reason to use cmd.exe until now when I have to. I mostly use Linux for development.

如果这有帮助:我在远程登录到另一台计算机, D:\temp 在远程机器上,但是 C:\ 在我打开终端(cmd.exe)。

If this helps: I'm on a remote login to another computer and D:\temp in on the remote machine, but so is C:\ where I have opened the terminal (cmd.exe).

推荐答案

cd命令更改目录,但不更改您正在使用的驱动器。所以当你去cd d:\temp,你正在将D盘的目录更改为temp,但仍保留在C盘中。

The "cd" command changes the directory, but not what drive you are working with. So when you go "cd d:\temp", you are changing the D drive's directory to temp, but staying in the C drive.

执行这两个命令:

D:
cd temp

这会得到你想要的结果。

That will get you the results you want.

这篇关于如何在Windows中更改目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆