How to Locate Viruses Using the Attrib Command

Part 1 of 2:

Opening Command Prompt

  1. How to Locate Viruses Using the Attrib Command Picture 1
    Open the Start menu. Click the Windows logo in the bottom-left corner of the screen, or press the Win key on your keyboard.
    1. 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. How to Locate Viruses Using the Attrib Command Picture 2
    Type command prompt into 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.
    1. If you're using Windows XP, you'll instead click the Run app on the right side of the Start menu.
  3. How to Locate Viruses Using the Attrib Command Picture 3
    Right-click Command Prompt. It resembles a black box. Doing this will invoke a drop-down menu.
    1. If you're using Windows XP, you'll instead type cmd.exe into the Run window.
  4. How to Locate Viruses Using the Attrib Command Picture 4
    Click Run as administrator. It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
    1. You'll need to confirm this choice by clicking Yes when prompted.
    2. If you're using Windows XP, you'll click OK to open Command Prompt.
    3. 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).
Part 2 of 2:

Locating and Deleting Viruses

  1. How to Locate Viruses Using the Attrib Command Picture 5
    Type in your directory's name. This will typically be the letter on the disk drive (e.g., "C:").
  2. How to Locate Viruses Using the Attrib Command Picture 6
    Press Enter. This will change the Command Prompt's search location to your selected directory.
  3. How to Locate Viruses Using the Attrib Command Picture 7
    Type attrib -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.
    1. Any legitimate system files won't have their attributes removed, and you'll see "Access Denied" listed to the left of them.
  4. How to Locate Viruses Using the Attrib Command Picture 8
    Press Enter. Doing so will display all previously hidden system files' names.
  5. How to Locate Viruses Using the Attrib Command Picture 9
    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.
    1. Before proceeding, be sure to double-check any file names you suspect of being viruses by looking them up.
    2. Common virus names include "autorun.inf" and "New Folder.exe".[1]
  6. How to Locate Viruses Using the Attrib Command Picture 10
    Type del [file name] and press Enter. Doing so will remove the virus from your computer.[2]
    1. For example: to delete the "autorun.inf" virus, you'd type in del autorun.inf.
  7. How to Locate Viruses Using the Attrib Command Picture 11
    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.
4.3 ★ | 4 Vote

May be interested

  • How to locate your iPhone quicklyHow to locate your iPhone quickly
    to locate the iphone quickly, apple has applications and utilities such as find my iphone or find my friends. the following article, we will also learn how to locate your iphone quickly and correctly offline!
  • Some tricks to locate Pokemon GOSome tricks to locate Pokemon GO
    if you're wondering how to locate pokemon go or how to find pikachu, scyther, electabuzz and some other rare pokemon. please refer to the following article of network administrator.
  • Software to locate other people's phone numbersSoftware to locate other people's phone numbers
    software to locate other people's phone numbers. if you've ever seen foreign science and criminal movies, you've probably seen the agents search, locate the culprit via phone number and summarize them.
  • Del command in WindowsDel command in Windows
    the del command deletes one or more files. this command is the same as the eraser command.
  • 2 ways to locate iPhone to help you manage the device more conveniently2 ways to locate iPhone to help you manage the device more conveniently
    in today's article, i will share with you two simple ways to locate your iphone, helping you better understand this feature as well as manage apple devices more conveniently.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • No need to use an antivirus program, this is how to get rid of the virus on your computerNo need to use an antivirus program, this is how to get rid of the virus on your computer
    viruses can be illegally hacked into users' computers through various ways, such as during web browsing, or from usb devices or during the installation of applications and software.
  • Set command in WindowsSet command in Windows
    the set command helps show, set or remove cmd.exe environment variables.
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to Unzip Files in LinuxHow to Unzip Files in Linux
    this wikihow teaches you how to unzip a compressed folder in linux by using the terminal command line. locate your zipped folder. if it's in the documents directory, for example, you'll open your documents folder.