How to remove virus using CMD

  • Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.
  • Open the infected drive such as write , g: to go to G drive.
  • Now type dir/w/a . It will show all the files of the drive including hidden files.
  • Locate AUTORUN.INF or any Virus and other suspicious files in the directory.
  • Type command attrib  -r –a –s –h to remove attributes of corresponding file.
  • Type del autorun.inf to delete autorun.inf file.
  • Now type del virus name.exe t delete it, eg : del newfolder.exe .

Comments

Popular Posts