You need to know before you get started

Attrib -r -a -s -h file.txt this will remove all attributes of file.txt and attrib +r +a +s +h file.txt will give all attributes to file.txt. the common prompt is the easiest way to remove the virus from the sd card or Pen drive.

Remove Computer Virus | Using Command Prompt | Easiest way to remove

Note: Viruses are a nuisance, unfortunately, it seems unlikely to avoid them. Some viruses can delete computer files while some virus hides files. so, to be free from it command prompt helps to prevent from it


Follow the steps given below.

step 1: Go to the command prompt press windows key+r and enter cmd.

Remove Computer Virus | Using Command Prompt | Easiest way to remove


step 2: Go to the drive where you want to delete virus just like D drive or C

step 3: Type “attrib -r -s -h *.* /s /d”  and press enter .

Remove Computer Virus | Using Command Prompt | Easiest way to remove


step 4: Enter dir /a.

Remove Computer Virus | Using Command Prompt | Easiest way to remove

step 5: Delete all the .inf, .exe, .dll, .log extension file, with the help of dos del command

 

Now your pen drive is free from viruses.

thanks for reading this article. let me know what you think of this article in the comment section and don’t forget to share it with your friends.