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 dos creates folders

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how dos creates folders. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

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.

Thank you for reading! This is the end of the article on "how to create a folder in dos". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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