Tutorial for finding and removing viruses using CMD
Follow the step by step guide below to remove viruses from your system using Command Prompt.
•Open the Command Prompt in your system. Go to Search Tab in Start menu and type cmd there.
•Choose the drive which you want to scan. In this case we are taking Drive C. Type C: in the command prompt.
• Now type this command and it will display all the files in C drive including hidden files.
•Look for the files which you are not familiar with. To find the autorun.inf file enter this command.
attrib -h -r -s autorun.inf
•To delete the discovered autorun.inf files, type this command.
In similar way you can scan and delete autorun.inf viruses from all the drives. If you want to delete .exe files use the same method.
Tutorial for removing shortcut viruses using CMD
If you are having shortcuts of folder or programs on your system, you can follow the steps mentioned below to remove them. These viruses are mainly present in USB flash drive, so we will remove them from a USB drive in this tutorial.
•Open the command prompt just like you did before.
•Open the Pen Drive directory using command prompt.
•Now type this command and press Enter.
•Again type another command and press Enter.
-h -r -s /s /d e:\*.*
Using these commands you will be able to remove shortcut folders from your Pen drive. If you want to remove shortcuts from your HDD drive, use the HDD drive location instead of Pen drive location.
If you copied some files in your pen drive but the pen drive is not showing it then it means that there is a virus present in your pen drive. Read the tutorial for recovering those files.
•Open command prompt.
•Type the following command there.
attrib -h -r -s /s /d x:\*.*
Replace letter x with the letter of your Flash drive.
Restart your system and there won’t be any viruses present in your system now. We hope this tutorial helped you to remove viruses from your Windows PC. If you have any doubts regarding this tutorial, then you can comment on below section.