

The term "virus" is erroneously used to refer to other types of malware, including adware and spyware programs that do not have the reproductive ability. Where M is the Drive letter.i.e: Removeable Disk (M) Step 4: Then close the Command prompt menu. It is the most simple method with which you can remove shortcut virus. Step 2: Click on "Start" ->Run -> type cmd and click on OK. Here I assume your flash drive letter as G: Enter this command. This will remove the autorun.inf files from your flash drive and also from drives. Command Prompt is used to execute entered commands. Actually, the command prompt is a utility program that has access to reconstruct all the system files, and in this method, we will be using the same access to cmd. A true virus can spread … You can detect and remove computer virus using CMD(Command Prompt) and safe the important data on your system as well.

Are any of the files in use by a program or open on another computer that is connected? One of the ways on how to remove shortcut virus from USB flash drive is through Windows Command Prompt or CMD.

We will use a famous CMD command known asattrib.

Edited by Michael J., Eng, Maria Quinney, Alma and 25 others. Open your command prompt and go to your USB drive. You may see some hidden files on your PC or USB. Now Delete each File using the following Command del filename ( E.g del autorun.inf ). This method works on attributes removing which can be one reason for the virus. then you can use the ATTRIB -R -S -H somefile.xxx to make that file ready to be deleted. before using it, it's better to have a basic knowledge about this command. To remove the virus using Cmd, we will use a famous cmd command called ‘attrib’ command.
