Home > Common Problem > body text

How to cmd to a specified folder

藏色散人
Release: 2021-01-20 11:43:03
Original
23397 people have browsed it

How to move cmd to the specified folder: First press the shortcut key "WIN R" and bring up the run command window; then enter CMD and click Enter to confirm the run; then enter the command " cd /d d:\test" to directly enter any folder under the specified drive letter.

How to cmd to a specified folder

#The operating environment of this article: Windows 7 system, Dell G3 computer.

Press the shortcut key: WIN R, bring up the run command window, and enter CMD, press Enter to confirm the run

How to cmd to a specified folder

At this moment, a CMD will be opened Window

How to cmd to a specified folder

Normally, if we want to enter any directory under another drive letter, we need to run the command twice in the CMD window: first, enter the drive letter, and second Enter the specified directory for the first time

#进入D盘
d: 
#进入D盘下的test目录
cd test
Copy after login

How to cmd to a specified folder

By using the CD command and adding the parameter /d, you can directly enter any folder under the specified drive letter in one step.

#一个步骤进入D盘下的test目录
cd /d d:\test
Copy after login

How to cmd to a specified folder

Error example: If you do not add the /d parameter and press Enter to run, you cannot change the working directory

How to cmd to a specified folder

For more related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to cmd to a specified folder. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
cmd
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template