In this post I will tell you how to remove virus from your computer using
command prompt only. Generally for removing viruses from computer we use
antivirus program. But I have a trick by which you can delete viruses from your
computer without antivirus by just using command
prompt. So follow these steps to do it :
- At first open command prompt. For this press "windows+r " key and write cmd then press enter or you can simply write "cmd" in search box after clicking start button.
- Now type in the command prompt [drive_letter]: and press enter. suppose if you want to search "D" drive for viruses then you have to type like this in command prompt d: and now press enter.
- You have entered in the D drive . Now we will see all the files in this drive including hidden file. For this type dir /w/a in the command prompt and press enter key. It will show the list of all the files in this drive.
- Now you have to identify autorun.inf and .exe files in the directory. these may be viruses if they are not softwares saved by you in those drives.
- Now use the command -r -a -s -h to remove the attributes of all the files in the directory.
- For deleting the autorun file type del autorun.inf and press enter.
- Suppose you found the virus named xyz.exe then to delete it type the command del xyz.exe and press enter.
- In this way you have deleted the virus . But in some cases the virus resides in the Recycler folder . You will have to go to recycler folder to delete it. So type cd recycler and press Enter.
- Now check this recycler folder by typing the command dir /w/a
- If you find here again autorun.inf or xyz.exe type files then use the command -r -a -s -h to remove the attributes of all the files in the directory.
- Again delete the infected files by the command del autorun.inf and del zyz.exe
In this way you have
successfully deleted virus from your computer using command prompt.
No comments:
Post a Comment