In this guide we show how can you remove virus from USB drive, SD card, pen drive, in fact, any drive on a PC using Command Prompt.
Do you know how viruses can damage your computer exactly? There are many types of viruses, and they behave in many differentiated ways. To sum up, a computer virus is simply a type of program that causes your computer to act in an undesirable way. It can be dangerous, to drag your computer down, erase very important files, or gives hackers access to your personal information…
Viruses are nuisance, unfortunately, it seems unlikely to avoid it. Some viruses like Locky virus and CryptoLocker, also known as ransomware, delete computer files, encrypt them, even change the file extension to .locky or .encypt, while some virus hide files, making users find nowhere to unhide them. If you happen to be a victim who’s looking for .locky file recovery and .crypt file recovery, then click the links.
How to remove virus from USB drive, memory SD card and other drive using CMD in Windows 10
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
- Open Command Prompt from search and run as an administrator.
- Type D: and press Enter.
- Type attrib and press Enter. You’ll see autorun.inf virus listed.
- 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).
- Type del autorun.inf and enter, to delete the files.