In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to use the del command in dos. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The use of the del command is simple, just use the format of "del file path". For example, if you want to delete test.txt in the root directory of D disk, use del d:\ test.txt.
However, not all files can be handled with only the del command, such as files with hidden, read-only, or system attributes. If d:\ test.txt has hidden properties, if it is just del d:\ test.txt, d:\ test.txt will be motionless. How do I delete it? At this point, you need to add some auxiliary parameters to del. The hidden attribute is hidden, the read-only attribute is read, the read-only attribute is read, the system attribute is system, and the system attribute is system. If you don't know what the file is, you can use del / a-- but there is an exception. When the file has a read-only attribute, you have to add the del / a / f parameter, so If you want to forcibly delete files that do not know the attributes, it is safest to use del / a / f statements. Here, the / f parameter means to force the deletion of a read-only property file, and f is taken from force, which means mandatory.
For a period of time, the Weijin virus wreaked havoc on the network and destroyed many files. Among them, the most important point is to generate a desktop.ini file in each directory. As long as these desktop.ini files are deleted, the virus will be harmless. To delete the desktop.ini files in each directory, it will be annoying if you click on a subfolder to delete. If you use the del command, you can do it with a simple statement, that is, execute the del / a / f / s desktop.ini command in the specified directory. Here, / s means to search all subfolders under the current directory and delete the specified files. S is taken from sub, which means "subordinate" and "subdirectory".
Deleting files is a very dangerous thing, and if you are not careful, you may delete important files, so you need to be careful when performing deletion operations. If you need to confirm before deleting, you can add a parameter: / p.
Of course, for a very sure delete operation, you don't need to confirm it one by one, you can choose the silent delete mode, in this case, you need to use the parameter: / Q, which is the abbreviation of quiet.
This is the end of the article on "how to use del commands 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, please 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.
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.