Steps to Remove Computer Virus in USB using DOS command

Removing computer virus in USB is really difficult especially if we don't have an updated anti-virus software installed to our computer. Viruses will easily attack the computer and infect all the system files or even our personal files that are stored on this computer if we don't have an antivirus. Since, the license of an antivirus software is very expensive, here the simplest way to solve this problem(computer virus in flash drive or usb).

The "simplest way or steps to remove computer virus in USB using CMD or DOS commands".

1. Click start button and click Run.
    2. Type CMD in the dialog box and Click OK.
computer virus on usb,remove using cmd command
   3. Type your Drive Letter for your USB and Press Enter in your keyboard, mine is D:
simplest way to remove virus on usb, using dos commands 

    4. Type dir/a to see all the hidden files inside your usb,also look the autorun.inf file. press enter key.

delete computer virus in usb or flash disk using commands in dos
   5. You type this command, attrib -r -a -s -h in the command prompt or cmd to show all the hidden files.  Then press enter.
deleting virus in computer using cmd command
  6. Type del autorun.inf /s to delete the virus. Press enter after you type.

delete or remove autorun.inf using commands in windows
 7. Type again this command, dir/a to check whether the auturun.inf is already deleted.
steps to remove computer virus inside usb

Thank you for reading this post. Hope you learned this "simple way on how to remove computer virus in usb using DOS commands".

Email Address Here:

Thank you!


  1. Hi all,

    USB drives can be dirty little pieces of hardware in this day and age of computer viruses and other malicious programs. This drives are shared among many computers. It only takes one person to infect a USB drive and spread the virus through any computer to which the drive comes in contact. If you know that a USB drive you want to use is infected, you can remove any viruses from the drive. Thanks.......

    Computer Service MD

  2. If you don't already have a anti-virus program download and install one. Eg. avast antivirus,it can provide good Antivirus Protection .
    Then scan the removable USB drive for viruses. If there are actual viruses on the USB drive it should be able to remove them.

  3. Our team of skilled computer technicians is helping over 10,000 clients and capable of providing you support just like your own internal helpdesk


Post a Comment

Popular posts from this blog

How to Add Flag Counter Widget to Blog