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

How to create a folder through the cmd command

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

Share

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

This article introduces the knowledge of "how to create a folder through the cmd command". 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!

For example: md d:\ test, or you can use md test to create a test folder under the current path.

If you want to create a folder with spaces or &, you need to enclose the folder name in quotation marks, such as md "test abc", md "abc&xyz". What are the consequences if quotation marks are not used?

The results of the test are:

1. If the folder name has a space, the md test abc statement will create two folders, test and abc, under the current directory. Taking advantage of this feature, we can sometimes get the strange effect of simplifying complexity: if you want to create these three folders of abc def xyz, just use md abc def xyz instead of writing three md statements in succession. Of course, it is possible to write md abc;def;xyz or md abc,def,xyz.

2. If the folder name contains &, md abc&xyz creates the abc folder and prompts you: 'xyz' is not an internal or external command, nor is it a runnable program or batch file, because & is the join symbol of a compound statement, and it treats the front and back parts as two clauses.

Advice: if the folder name contains special symbols, don't forget to use double quotes!

Md also has a convenient feature: creating intermediate directories. In other words, commands such as md a\ b\ c can create a folder a under the current directory, and then create a folder c under a folder b, without first md a, then cd a, then md b, then cd b, then cd b, and then md c.

This is the end of "how to create a folder through the cmd command". 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