Search This Blog

Pages

Header Ads Widget

Responsive Advertisement

Sunday, 17 August 2014

Removing Virus Using Command Prompt

Hello folks, today i am going to to tell you how to remove virus using command prompt. I know many antivirus are available to do this job but many of them fail to remove these suspicious virus files such as autorun.inf etc. Why don't we understand that we made tools for decreasing our efforts, tools can not defect us.
Now come to point, following steps can be used to remove a virus file using command prompt:


  1.  First, press Windows Button + r then type cmd in it and press enter.
  2. Open Infected drive such as write E: to go E drive.
  3. Now type dir/w/a . It will show all the files of the drive including hidden files.
  4. Locate your virus file name i am using AUTORUN.INF.
  5. Type command attrib  -r –a –s –h to remove attributes of corresponding file.
  6. Now type del virus name.exe t delete it, eg : del newfolder.exe
and you are done, you can also delete viruses by using following steps:

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 “virusfile”.

  1. Now you can access the defected drive without affecting the virus.
  2. To delete the renamed file go to the defected drive and select the file you renamed, and delete it.
You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:

  1. Type cd recycler command.
  2. Again type dir/w/a  to locate all file of the folder.
  3. Identify malicious files and delete them using above commands.
Note: Make sure that no other processes being running while performing these actions.

:)

1 comment: