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...
Table of Contents
Part 1 of 2:
Making sure the data can be recovered
-
Open the drive that contains the virus. -
Press Ctrl+A to select all. -
Hit Alt+Enter to view properties. -
Note the total space consumed by the data of the drive. -
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.- 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
-
Press Ctrl+R at the desktop. -
Type cmd and hit Enter. -
Type the command: attrib -a -r -h -s /s /d x:*.* - Replace x with the drive letter and hit Enter.
- The drive will now contain a folder without any name. This folder contains your lost data.
-
Delete any unnecessary files that you see such as autorun.inf, recycle.bin etc. -
Backup your data and format the drive, if possible.
You've just finished reading the article "How to Remove a Virus Using Cmd" edited by the TipsMake team. You can save how-to-remove-a-virus-using-cmd.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.
Read more
- Destroy the autorun virus in USB or on PC with 4 simple ways
- Instructions for removing PUP.Tuto4PC virus
- No need to use an antivirus program, this is how to get rid of the virus on your computer
- What is IDP.generic virus and how to remove it?
- How to get rid of root virus * .OSIRIS - Ransomware Locky?
- What is Virus Code Red? How to remove like?










