如何使用 Windows 命令行更改目录 [英] how to change directory using Windows command line

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

问题描述

我正在使用 cmd.exe (C:WINDOWSSystem32cmd.exe),我必须将当前目录更改为D: emp",即 D 中的临时文件夹开车.

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

当我尝试 cd 时没有任何反应.

When I try to cd nothing happens.

C:> cd D:	emp

C:>

我不知道这里还能做什么.即使按 tab 键也不会给出任何提示.我从来没有理由使用 cmd.exe 直到现在我必须这样做.我主要使用 Linux 进行开发.

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: emp 在远程机器上,但 C: 也是我所在的位置已经打开终端(cmd.exe).

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

推荐答案

cd"命令会更改目录,但不会更改您正在使用的驱动器.因此,当您转到cd d: emp"时,您将 D 驱动器的目录更改为 temp,但仍保留在 C 驱动器中.

The "cd" command changes the directory, but not what drive you are working with. So when you go "cd d: emp", 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天全站免登陆