Pages

Saturday 12 April 2014

How to Remove a Virus by Using Command Prompt??

Dear Technoweb Tricks Readers, Today I am going to tell you How to Remove a Virus by Using Command Prompt..


Some suspicious files such as autorun.inf initiate all the viruses in pc. These files must be removed for safe operation of your pc, because they may lead to data loss, software damages etc. Such viruses and files can be removed by using cmd. In this article we will discuss how to remove a virus using command prompt. 

Following steps can be used to remove a virus using command prompt from your computer.

1-Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.



2-Open the infected drive such as write , g: to go to G drive.

3-Now type dir/w/a . It will show all the files of the drive including hidden files.





4-Locate AUTORUN.INF or any Virus and other suspicious files in the directory. 


There was no virus in my drive so only autorun.inf is been highlighted. 

5-Type command attrib  -r –a –s –h to remove attributes of corresponding file.



there was no virus in my drive so only autorun.inf is been highlighted. - See more at: http://www.besthacking.in/2014/03/how-to-remove-virus-using-command-prompt.html#sthash.tVh2Nh3H.dpuf
Type del autorun.inf to delete autorun.inf file.
Type del autorun.inf to delete autorun.inf file. 


6- Now type del virus name.exe t delete it, eg : del newfolder.exe


(You can also delete viruses by using following steps):




1- When you find an Autorun.inf file or any other unusual .exe file just rename it. 


Syntax for rename is (rename filename.extension new name ,  for example: (rename autorun.inf virus) to rename autorun.inf file. Here I have renamed it by “virus”.

2-Now you can access the defected drive without affecting the virus.
 

3-To delete the renamed file go to the defected drive and select the fileyou renamed. 



Now delete the harmful renamed files.)
You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:
 

4-Type cd recycler command




5-Again type dir/w/a  to locate all file of the folder.
 

6-Identify malicious files and delete them using above commands.

Follow the above steps carefully and i think this information is enough to remove a virus using command prompt easily.
Important: Make sure that no other processes being running while performing these actions. Best of luck.

No comments:

Post a Comment