In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "dos how to delete a folder", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "dos how to delete a folder" this article.
Another way to write rd is rmdir, which comes from ReMakeDirectory. The method used is also simple: the name of the rd folder, for example: rd test. It supports folder names with paths, for example: rd d:\ test.
Sometimes rd doesn't do a good job: you ask it to delete the test folder, but it arrogantly rolls its eyes at you: the directory is not empty. However, it can't be blamed for being lazy and not working, but its temper is a little strange: if there are subfiles under the folder you want to delete, you have to put a high hat on rd and add a / s parameter before it will happily do things for you, so the correct way to write it is: rd / s test.
If you are a complete slacker, just using rd / s test may not be satisfied with it, because when you delete the folder of the tape files, CMD always stops unwittingly and asks you graciously: are you sure? I have to wait for you to type a character and hit enter. You can't blame the government for your bitter fate, and you can't blame the society for your misfortune. Who says rd has so much power? once it plays hooligans, no one can stop it-- rd has risks, so you have to be careful when you delete it. Fortunately, Microsoft is considerate to those who are very sure about deletion and are too lazy to kill, providing a very convenient parameter / Q, which is taken from quiet, which is officially interpreted as: quiet mode, no confirmation is required when deleting a directory tree with / S. Try again this time: rd / Q / s test, it really is: in a flash, it goes up in smoke, is there a feeling of being out of sight and out of mind?
Today encountered a virus, very stubborn, it generated a virus boot file and a folder on the u disk, and is hidden, using the "folder options" menu-"View"-select "Show all files and folders" and remove "hide protected system files", delete the auturun.inf virus boot file, but can not see the hidden folder.
Run the CMD command, switch to the drive letter of the USB drive, and use the command dir / a to see the hidden folder. I wanted to use the rd command to delete it directly, but found that it could not be in a row. Let's talk about how to use the rd dos command to delete a folder.
First you need to use dir / a to show all hidden files and folders, and then there are two ways to delete hidden folders:
If you want to delete the hidden folder 001 under disk D, but there are many files in 001, but there are no folders?
1. Use the cd folder name to switch to the folder to be deleted, del * / f, and then rd the folder name below is an example of the command
Run the cmd command
The code is as follows:
D:
Cd 001
Del * / f
Cd..
Rd 001
The parameter / f here forces the deletion of the read-only properties file, cd.. Is to return to the parent directory.
2. If you want to delete the folder 001 on D disk directly, regardless of the files and folders contained in it, you can directly use the rd folder name / Q / s. The following is an example of the command.
The code is as follows:
D:
Rd 001 / s / q
The / s here deletes the directory structure under this folder directly, including all subfolders and subfiles. / Q is quiet mode and does not need to be checked again.
The above is all the contents of the article "how to delete folders in dos". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.