How to Recover Deleted Files Due to Virus Attack Using CMD Command

In Computer Skills, Software Skills
Recover Deleted Files Due to Virus Attack Using CMD Command

You probably lose important files in a storage media such as flash disk, memory card, hard drive, or external hard drive. Generally, the solution to recover accidentally deleted files is different to unhide files hidden by virus is different to how to recover deleted files due to virus attack and to unhide files hidden by the user. In case you accidentally deleted a file from your internal hard drive, you simply need to recover it from your Recycle Bin. Or, if you accidentally deleted a file from you external storage media such as flash disk, external hard drive, you can use one of data recovery software such as Recuva, EaseUS Data Recovery Wizard, etc.

On the other hand, it’s a good idea to encrypt your computer drives using the best free encryption software to make sure that someone else will not be able to recover deleted files on your computer. But it could be very troublesome if you lost important files due to virus attract. Moreover, if you lost your important data due to virus attack that is listed on the most harmful computer virus names. Or, perhaps you are in the gradual process of thesis writing, but the Word files got hidden or deleted by virus attack.

On the other hand, it’s a good idea to encrypt your computer drives using the best free encryption software to make sure that someone else will not be able to recover deleted files on your computer. But it could be very troublesome if you lost important files due to virus attract. Moreover, if you lost your important data due to virus attack that is listed on the most harmful computer virus names. Or, perhaps you are in the gradual process of thesis writing, but the Word files got hidden or deleted by virus attack. Read also: Prevent virus infects your data.

Here you are going to discover how to recover deleted files due to virus attack using a simple code on CMD. Someone either says this problem as lost files after virus attack or deleted files due to virus attack by a computer virus does remain the same in its meaning. The following simple guide also works to restore or recover deleted files in an external storage media such as a flash disk, memory card, micro-SD, or external drive is lost due to computer virus attack.

Simple Steps to Recover Deleted Files Due to Virus Attack Using Command Prompt (CMD)

Downloading and installing data recovery software onto your computer could take time. Instead, before you download and install one of the best data recovery software, try to recover the hidden virus-infected files using a CMD command. There are so many important Command Prompt functions. One of which is to recover hidden files due to virus attack. This way is a good idea whenever you are in an urgency situation. However, in case the command prompt below is not working to restore the files, you can use the data recovery software. But first, follow the simple steps below to recover deleted files due to virus attack using a CMD command prompt.

  1. Go to “Start” (Windows button at the bottom right of your screen or at your left-hand side). Then, type “Run” in the search bar, then you’ll see a program named “Run”. Click on it!  Or, you can just simply using a shortcut by typing Windows + R simultaneously. Then type CMD.

    Run Program on Windows
    Type Run in the search bar of the Windows Start.
  2. Type the letter of the storage media directory (whether flash disk, memory card or hard drive). For example F: and then press Enter.

    Hard Drive Directory Letter
    Choose the Hard Drive where the deleted files saved.
  3. After that, type a CMD command: F:attrib -s -h -r /s /d. Take a look at the image below.

    The CMD Command to Recover Deleted Files due to Virus Attack.
    The CMD command to recover deleted files due to virus attack.
  4. If any file appears, copy the file to a safe folder on your computer and then format the storage media to delete the virus.

If you follow the instruction exactly, the deleted files due to virus attack should be recovered. After the lost files have been recovered, you should immediately copy those files to your computer. But make sure the new folder for those files is safe. Then, format the storage media, whether it’s a flash disk, hard drive or any other kind of storage media.

To make sure files are safe, scan them using a good antivirus software and check the security level of the computer and follow the given tips.

The steps to recover deleted files are really simple. However, there would be lost files after virus attack which can’t be recovered using a CMD command. So, it’s the right time for you to use a data recovery tool.

Leave a Reply

Mobile Sliding Menu