Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Instructions for using the cd command in dos

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "instructions for the use of cd commands in dos". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Apply with a drive letter (such as: cd c:) and enter cd /? in the command line cmd. Help information can be displayed as shown below:

Column 1. The root directory is the top level of the directory tree structure of the drive. To return to the root directory, type: cd\ on the command line and the result is as follows:

Example 2. If you want to return to the upper directory, type cd.. at the current command prompt As shown below:

Example 3. If you want to enter the next level directory, enter the name of the cd directory at the current command prompt. Enter cd "documents and setting" at the command prompt C:\ > as shown below:

Example 4. If you want to change the directory c:\ documents and settings of the current drive, go to the default directory of the d drive, and type d: on the current command line. The result is as follows

Example 5 shows the current directory of the drive with the drive letter cd. Enter cd e under the current directory of disk C as shown below:

Example 6. If you want to change the default directory on the d drive to D:\ word on the current C drive, type cd d:\ word on the command line as shown below:

If you don't believe me, you can verify that the default directory of enter D disk has been changed as follows

Example 7. If the current directory is C:\ Documents and Settings, you need to switch to d:\ word. Enter cd d:\ word on the command line, and then enter d: the following figure

Example 8. In the previous example, you need to enter d:\ word twice. Enter cd d:\ word for the first time and enter d: for the second time. Can you enter the d:\ word directory in one step? The answer is yes, or the above figure as an example, as long as add the parameter / D, such as cd / d d:\ word execution results as shown below: note: this parameter is valid under 2k/xp/vista/win7/

This is the end of the introduction to "instructions for the use of cd commands in dos". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report