Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
How autorun. inf is immune
We will not discuss how the autorun. inf virus is infected. Let's just talk about immune
The main points for immune to autorun. inf are:
1. prevent viruses from generating the autorun. inf file in the root directory of the drive.
2. prevent viruses from damaging our immunity measures
For the first point, we can create an autorun. inf folder in the root directory of the drive. The principle is that files in the same directory cannot be named the same as folders.
For the second point, we can create an undeletable directory in the autorun. inf folder we just created.
Take disk C as an example. The whole process is as follows:
CMD ---- enter the command line
C: ---- enter drive C, type/"C:/" on some computers, no response, can be changed to/"C :///"
MD autorun. inf ---- create the autorun. inf folder
CD autorun. inf ---- open the autorun. inf folder
MD a .. // ---- create a folder that cannot be deleted
OK! In this way, you can create a folder named autorun. inf under the root directory, which contains a sub-folder named "a.". Try to delete it. Haha, You can't delete it.
Do it in your USB flash drive!
How to delete this folder:
Or enter C: // autorun. inf through the command line.
Check whether there is a messy string in front of the created Folder/"? You can think of this string as the real file name of "a.". Use this file name to change the name before deleting it.
Renamed syntax is
Rename old name new name
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.