How does the computer switch disks and folders with CMD command?


The CMD command prompt is occasionally used in daily work and study. It is not as convenient to open disks or folders as the graphical interface. Today, let’s take a look at the skills of switching disks and folders at the CMD command prompt.

Right click the start button to open【function】。

Enter CMD, press enter or click【determine】The command prompt opens.

To switch to the root directory of the current disk, use:

cd \

After entering the above command, press enter to execute.

To switch to another disk, such as disk D, enter:


Press enter.

To switch to a folder directory on a disk,The CD command can be followed by the folder name.As shown in the figure below,Switch to the perflogs directory with the CD command.

If you are not proficient in using it, be sure to remember, CD /, You can view the help information of the CD command.

The above is the skill of switching disks and folders with CMD command. I hope you like it. Please continue to pay attention to developpaer.

Relevant recommendations:

How does CMD command delete or forcibly delete files?

How to modify CMD font color? Tips for setting CMD command text color

How does CMD modify the file extension? CMD displays a tutorial on modifying file extensions