如何在 Windows 11/10 上更改 CMD 中的目录

如何在 Windows 11/10 上更改 CMD 中的目录

How to change Directory in CMD on Windows 11/10

Windows Command Promрt is a great built-in tool that allows you to run programs using the command-line option. Using thе command, yoυ can perform a lot of things instantly on your Windows cоmputer like troubleѕhooting and fixing certain kinds of challenging isѕues, switching or changing dirеctory, and more.

As a Windows user, you must need to be well familiar with the basic commands and usage of the Command Prompt. In this guide, we will show you how to change directories in Command Prompt on Windows 11/10.

How to change Directory in CMD

If you want to change the directory in the Command Prompt, you have three options:

Use Dir and CD command to change directoriesUse the Drag and Drop methodUsing the Tab key.

1] Using DIR and CD commands

To get started, open the Windows search using Win+Q keyboard shortcut.

In the text area, type cmd and then select Command Prompt from the result list.

Once you open the command prompt, type dir command to see the list of all subdirectories in the current folder.

In the above screenshot, you can see the list of all directories available in my folder named “digvi”.

Now suppose you want to change the current directory with the Documents folder from the list.

To do so, type cd followed by a space, type Documents and then hit Enter-

cd Documents

If you think you are in the wrong directory and want to change the directory then you first need to move a level back.

To do that, type the below commands and hit Enter:

cd ..

After turning back, type cd followed by a space and then type the new directory name you want to change.

cd space

Make sure to remove the brackets from the above command-line and then press the Enter key.

For reference, you can see the above image, where I have changed the Documents directory to Downloads directory.

Once you change the directory name, again type dir to see the contents of the directory.

Read: How to delete files and folders using Command Prompt.

2] Using Drag and Drop

In case the folder you have to change is present on your computer screen, use the drag and drop method to reflect the pathname of the folder.

Read: Ways to open Command Prompt in a folder.

3] Using the Tab key

Additionally, you can use the Tab key to type the directory name quickly.

To do this, type cd > space > the first few letters directory name, then hit the tab key.

Hope this helps!

相关阅读

女性裆部痒是什么原因
bt365手机投注

女性裆部痒是什么原因

🕒 08-27 👁️‍🗨️ 2822
太昊:簡介,太昊生平,活動區域,改革發明,發明十二地支,十大政績,農田改革,改革大
蜂胶有什么作用与功效,该怎么吃?
beat365手机安卓版

蜂胶有什么作用与功效,该怎么吃?

🕒 10-23 👁️‍🗨️ 4769
传奇私服游戏里禁止聊天的举措解读
beat365手机安卓版

传奇私服游戏里禁止聊天的举措解读

🕒 02-11 👁️‍🗨️ 8216
2025年618什么时候买手机最便宜划算?淘宝京东618活动满减规则时间表一览
电视剧“女王”孙俪,这几年不拍电视剧的“原因”
bt365手机投注

电视剧“女王”孙俪,这几年不拍电视剧的“原因”

🕒 10-13 👁️‍🗨️ 7313
有哪些好用的安卓解压缩app?这3款让传输更容易!
beat365手机安卓版

有哪些好用的安卓解压缩app?这3款让传输更容易!

🕒 08-20 👁️‍🗨️ 8666
内存512GB是多少G 512GB相当于多少G
bt365手机投注

内存512GB是多少G 512GB相当于多少G

🕒 02-06 👁️‍🗨️ 8017
《怪物猎人世界》hr等级怎么升级快?hr快速升级方法详解
beat365手机安卓版

《怪物猎人世界》hr等级怎么升级快?hr快速升级方法详解

🕒 07-07 👁️‍🗨️ 3386