How to check and remove virus from your computer without using any antivirus



Community Tested

Why choose wikiHow?
When you see the green checkmark on a wikiHow article, you know that the article has received careful review. In this case, we tested the instructions on our own devices and confirmed that the instructions worked.

How to Locate Viruses Using the Attrib Command

Two Parts:

This wikiHow teaches you how to find and remove a virus that you know by name from your Windows computer. To do so, you'll use the Command Prompt program.

Steps

Opening Command Prompt

  1. Open the Start menu.Click the Windows logo in the bottom-left corner of the screen, or press the key on your keyboard.
    • For Windows 8, place your mouse cursor in the top-right corner of the screen, then click the magnifying glass icon when it appears.
  2. Typecommand promptinto the "Search" field.Doing so will search your computer for the Command Prompt app, which will pop up at the top of the search menu.
    • If you're using Windows XP, you'll instead click theRunapp on the right side of the Start menu.
  3. Right-click Command Prompt.It resembles a black box. Doing this will invoke a drop-down menu.
    • If you're using Windows XP, you'll instead typecmd.exeinto the Run window.
  4. ClickRun as administrator.It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
    • You'll need to confirm this choice by clickingYeswhen prompted.
    • If you're using Windows XP, you'll clickOKto open Command Prompt.
    • You won't be able to run Command Prompt in administrator mode if you're on a restricted, public, or networked computer (e.g., a library or school computer).

Locating and Deleting Viruses

  1. Type in your directory's name.This will typically be the letter on the disk drive (e.g., "C:").
  2. PressEnter.This will change the Command Prompt's search location to your selected directory.
  3. Typeattrib -r -a -s -h *.* into Command Prompt.The "attrib" command forces all hidden, read-only, archived, and system files to display in Command Prompt, and the "-r -a -s -h *.*" section of the command removes these attributes from non-legitimate files.
    • Any legitimate system files won't have their attributes removed, and you'll see "Access Denied" listed to the left of them.
  4. PressEnter.Doing so will display all previously hidden system files' names.
  5. Scroll up to find your virus.If you know the virus' name, you'll simply need to scroll up to it. Otherwise, look for files ending in ".inf" and ".exe" that don't look familiar.
    • Before proceeding, be sure to double-check any file names you suspect of being viruses by looking them up.
    • Common virus names include "autorun.inf" and "New Folder.exe".
  6. Typedel [file name]and pressEnter.Doing so will remove the virus from your computer.
    • For example: to delete the "autorun.inf" virus, you'd type indel autorun.inf.
  7. Close Command Prompt.The virus should no longer affect your system. You may even notice a slight increase in computer running speed or app response time.

Community Q&A

Search
  • Question
    Is it also applicable for removing other viruses and malware, like Trojan viruses and worms?
    wikiHow Contributor
    Community Answer
    Yes, but not always. Autorun.inf is just one of many ways to run a virus automatically, and this technique will not work on the others.
    Thanks!
  • Question
    If I start my computer up in safe mode, is it safe from any viruses?
    wikiHow Contributor
    Community Answer
    Yes -- it actually only starts the most basic software that is needed for the PC to work.
    Thanks!
  • Question
    Does this really work on all hidden viruses?
    wikiHow Contributor
    Community Answer
    No. There are far more advanced hiding methods that can't be detected this way. However, many free antiviruses are very effective, so you might consider just going with that.
    Thanks!
  • Question
    Can I accidentally delete a normal program with this method?
    wikiHow Contributor
    Community Answer
    No. The attrib command only changes a file's attribute, it doesn't change or delete the file itself. Renaming the file won't delete it either, as the file can be renamed again to the original.
    Thanks!
  • Question
    What should I do if the response states that the system could not find the specified file?
    wikiHow Contributor
    Community Answer
    You most likely misspelled the file name. Make sure you are in the correct directory and that you spelled the name of the file correctly. Also, be sure to include the file extension when you enter the file name.
    Thanks!
  • Question
    How do I sift through hundreds of files in the directory to pull out a few virus files?
    wikiHow Contributor
    Community Answer
    You really just have to look hard for them, I'm sorry. I went through the same thing, but it was worth it, trust me. Malware and viruses can be deadly to your system, so just plug away at it.
    Thanks!
  • Question
    What if the file that I need the most is corrupted?
    wikiHow Contributor
    Community Answer
    Try to recover the file or try to restore the file from a restore point or backup.
    Thanks!
Unanswered Questions
  • How to undo the run as administrator in cmd?
  • Is every .exe or .xml displayed in cmd prompt is virus?
  • I have a lot of files so I think that they all are infected with a virus. I copied all the files and tried to delete them but when I delete them different files open and they don't delete? Can any help?
  • All icons changes to explorer?
  • Right now I'm looking at the file In my task manager, but it says that it can not find the file. Even so, the file is duplicating rapidly. What do I do to stop it?
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.

Related wikiHows

Sources and Citations

Article Info

Categories: |

In other languages:

Español: , Italiano: , Português: , Русский: , Deutsch: , Français: , Bahasa Indonesia: , Nederlands: 

Thanks to all authors for creating a page that has been read 555,848 times.





Video: How To Remove Virus using cmd (2018)

How to Locate Viruses Using the Attrib Command
How to Locate Viruses Using the Attrib Command images

2019 year
2019 year - How to Locate Viruses Using the Attrib Command pictures

How to Locate Viruses Using the Attrib Command forecasting
How to Locate Viruses Using the Attrib Command forecast photo

How to Locate Viruses Using the Attrib Command images
How to Locate Viruses Using the Attrib Command picture

How to Locate Viruses Using the Attrib Command How to Locate Viruses Using the Attrib Command new images
How to Locate Viruses Using the Attrib Command new photo

picture How to Locate Viruses Using the Attrib Command
pictures How to Locate Viruses Using the Attrib Command

Watch How to Locate Viruses Using the Attrib Command video
Watch How to Locate Viruses Using the Attrib Command video

Forum on this topic: How to Locate Viruses Using the Attrib , how-to-locate-viruses-using-the-attrib/
Forum on this topic: How to Locate Viruses Using the Attrib , how-to-locate-viruses-using-the-attrib/ , how-to-locate-viruses-using-the-attrib/

Related News


Methylcotolone Reviews
How to Send Someone an Email
6 Stylish Nude Wedding Guest Dresses For Summer 2015
How to Manage Side Effects of MS Steroid Treatments
How to Buy Soundproofing Curtains
The Queen was nearly assassinated in 1981, according to newly released papers
Rachel Bilson x Coach Poppy Bags
How to Prepare a Model Car for Painting
7 Ways to Look and Feel Your Best During Menopause
Yes, Kanye West Must Have Just Cleaned Out Kim Kardashians Wardrobe Again



Date: 10.12.2018, 19:33 / Views: 62383