How to remove/delete virus using CMD in Windows 10/8.1/8/7


Just give you an example. I am going to transfer an 'autorun.inf' virus from my USB drive to my D: drive and delete that virus from my D: drive.

Step 1. Open Command Prompt from search and run as an administrator.

Step 2. Type D: and press Enter.

Step 3. Type attrib and press Enter. You'll see autorun.inf virus listed.

Step 4. To remove virus using CMD, type into your command prompt attrib -r -a -s -h *.* and press

Enter. This will remove the Read Only, Archive, System and hidden file attribute from all the files. (*.* for all the files with all different types of file extensions).

Step 5. Type del autorun.inf and enter, to delete the files.

Comments

Popular posts from this blog

⚠️How to create a virus in termux app ?

List in Python

How To Install Metasploit In Termux App ?