How to Remove a Virus Using Cmd

Part 1 of 2:

Making sure the data can be recovered

  1. How to Remove a Virus Using Cmd Picture 1
    Open the drive that contains the virus.
  2. How to Remove a Virus Using Cmd Picture 2
    Press Ctrl+A to select all.
  3. How to Remove a Virus Using Cmd Picture 3
    Hit Alt+Enter to view properties.
  4. How to Remove a Virus Using Cmd Picture 4
    Note the total space consumed by the data of the drive.
  5. How to Remove a Virus Using Cmd Picture 5
    Compare it to the used space of the drive. If the used space exceeds the total size of the data, then it is possible to recover the lost data.
    1. In other words, if the drive is showing more space consumed than the actual data inside the drive, then your lost data can be recovered.
Part 2 of 2:

Removing virus and recovering data through cmd

  1. How to Remove a Virus Using Cmd Picture 6
    Press Ctrl+R at the desktop.
  2. How to Remove a Virus Using Cmd Picture 7
    Type cmd and hit Enter.
  3. How to Remove a Virus Using Cmd Picture 8
    Type the command:    attrib -a -r -h -s /s /d x:*.*
  4. Replace x with the drive letter and hit Enter.
    How to Remove a Virus Using Cmd Picture 9
    1. The drive will now contain a folder without any name. This folder contains your lost data.
  5. How to Remove a Virus Using Cmd Picture 10
    Delete any unnecessary files that you see such as autorun.inf, recycle.bin etc.
  6. How to Remove a Virus Using Cmd Picture 11
    Backup your data and format the drive, if possible.
4 ★ | 1 Vote

May be interested

  • How to Scan Mac for MalwarePhoto of How to Scan Mac for Malware
    scanning your mac for malware should never require pulling out your credit card. unfortunately, mac malware can disguise itself as a removal tool, demand payment in exchange for protecting your computer. don't accidentally get tricked into...
  • How to Reflash Your BIOSPhoto of How to Reflash Your BIOS
    bios is short for basic input-output system. it is a set of electronic instructions stored on a chip inside your desktop or laptop. these instructions tell the computer how to perform the post (power on self test) and allow rudimentary...
  • How to Run a Chkdsk FunctionPhoto of How to Run a Chkdsk Function
    chkdsk checks your hard drive and creates displays a status report based on the file system. it can be used to detect and correct errors on the disk. follow this guide to run chkdsk in any version of windows, as well as its mac os x...
  • How to Lock a ComputerPhoto of How to Lock a Computer
    locking your computer is a good way to protect your computer from unwanted users when stepping away for a moment. in order for a lock to be effective, you will have to make sure that your computer is configured to prompt for a password...
  • How to Stop a Windows Computer from FreezingPhoto of How to Stop a Windows Computer from Freezing
    if windows is crashing on you consistently, this could either be an issue with a specific piece of software or a more generalized computer performance problem. performing regular maintenance checks can help prevent freezing, and immediate...
  • How to Back Up DataPhoto of How to Back Up Data
    this wikihow teaches you how to back up the data on your computer or smartphone. backing up your computer or phone creates a copy of its data so that you can restore it later if your computer, phone, or tablet is damaged or erased. connect...