How to Remove a Virus Using Cmd

It is common these days to lose your data due to virus affecting you flash drives, memory cards etc. The virus can be removed and the data can be recovered easily by using the command prompt. Just follow the simple steps. Open the drive...
Part 1 of 2:

Making sure the data can be recovered

  1. How to Remove a Virus Using Cmd Picture 1How to Remove a Virus Using Cmd Picture 1
    Open the drive that contains the virus.
  2. How to Remove a Virus Using Cmd Picture 2How to Remove a Virus Using Cmd Picture 2
    Press Ctrl+A to select all.
  3. How to Remove a Virus Using Cmd Picture 3How to Remove a Virus Using Cmd Picture 3
    Hit Alt+Enter to view properties.
  4. How to Remove a Virus Using Cmd Picture 4How 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 5How 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 6How to Remove a Virus Using Cmd Picture 6
    Press Ctrl+R at the desktop.
  2. How to Remove a Virus Using Cmd Picture 7How to Remove a Virus Using Cmd Picture 7
    Type cmd and hit Enter.
  3. How to Remove a Virus Using Cmd Picture 8How 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 9How 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 10How 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 11How to Remove a Virus Using Cmd Picture 11
    Backup your data and format the drive, if possible.
4 ★ | 1 Vote