Operating SystemTips and Hacks

Remove a Virus Using Command Prompt in windows 7/8

Remove a Virus Using Command Prompt:

Remove a Virus Using Command Prompt: Still happening good with your life and computer? Good if it working in a order if not so then this post is for you. Basically first i have to start about What a VIRUS is ? A program that has the ability to self-replicate by infecting other programs and files on your computer. These programs can have many effects ranging from wiping your hard drive, displaying a joke in a small box, or doing nothing at all except to replicate itself. These types of infections tend to be localized to your computer and not have the ability to spread to another computer on their own. The word virus has incorrectly become a general term that encompasses trojans, worms, and viruses. These types of viruses can be spread by USB/flash drive or form Wi-Fi/bluetooth and sometimes by transferring data from one PC to another PC . There are many antivirus software available to remove viruses from computer but Remove a Virus Using Command Prompt is the easy one out.

Also Read:

Remove a Virus Using Command Prompt

Such types of  trojan viruses and files can be removed by using cmd, you can learn more about Viruses and Types of virus . In this article we will discuss how to remove a virus using command prompt in windows 7/8

Also Read: How To Make A Virus That Disable Mouse using BatchFile Programming

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

  • Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt- step 1
  • 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.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers Step 2
  • Locate AUTORUN.INF or any Virus and other suspicious files in the directory.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers- step 3
there was no virus in my drive so only autorun.inf is been highlighted.
  • Type command attrib  -r –a –s –h to remove attributes of corresponding file.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers Step 4

Type del autorun.inf to delete autorun.inf file.

Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers step 5
  • Now type del virus name.exe t delete it, eg : del newfolder.exe .
(You can also delete viruses by using following steps:
  • When you find an Autorun.inf file or any other unusual .exe file just rename it.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers Step 6
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”.
  • Now you can access the defected drive without affecting the virus.
  • To delete the renamed file go to the defected drive and select the file you renamed.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers step 7
Now delete the harmful renamed files. You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:
  • Type cd recycler command.
Remove a Virus Using Command Prompt blacklisthackers
Remove a Virus Using Command Prompt blacklisthackers step 8
  • Again type dir/w/a  to locate all file of the folder.
  • 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.
ImportantNote:
Make sure that no other processes being running while performing these actions. Best of luck.
Also Read:
Harinder
the authorHarinder
blacklisthackers.com is created and owned by Harinder(Aarav).Aarav is a technology Blogger from India(Dehradun). He’s Quiet type and Creative Guy who enjoys creating and exploring new trends on the WEB. Currently pursuing B.tech from DIT University.

Leave a Reply