How to Recover Files Deleted by Virus Attack [Safe Guide]

Have you ever been attacked by viruses and suffered from data loss? If you have such an experience, you come to the right place. In this post, you will learn how to recover files deleted by virus attack in two different ways.

Hedy

By Hedy / Updated on July 24, 2024

Share this: instagram reddit

Is it possible to recover files deleted by virus attack?

Virus attacks are regrettably common in the digital landscape, particularly for Windows PCs. Despite taking precautionary measures, encountering malicious programs while connected to the internet remains a risk.

Malicious programs, often disguised with misleading intentions, can infiltrate computers, potentially resulting in significant data loss. If your PC falls victim to a virus and you lose your files, there's no need to panic—it is possible to recover files deleted by virus. In the following discussion, we'll explore the two most common methods for recovering lost files after a virus attack.

How to recover files deleted by virus attack?

In this part, we will explain two commonly used ways: one is using Windows built-in program, and the other is utilizing third-party software.

Solution 1. Recover files from virus using CMD

Recovering files from a virus-infected Windows PC using the Command Prompt (CMD) is a straightforward process that doesn't require additional recovery software. Here is how to recover virus infected files using CMD:

Step 1. Open CMD by typing 'cmd' in the search bar or the Run option.

Step 2. In the CMD window, type the following command:

attrib "-h -r -s /s /d drive letter:\*.*"

Replace "drive letter" with the letter of the infected drive. For example, if you want to recover data from the E drive, the command would be:

attrib "-h -r -s /s /d E:\*.*"

recover-files-deleted-by-virus-cmd

Step 3. Windows will commence repairing the specific hard drive affected by the virus.

You can use this method to recover files deleted by virus Windows 10 on any external hard disk or memory device. The repair process may take some time. While this method is not the most sophisticated and may not work in every case, it provides a quick and accessible solution. If the files you were looking for do not appear using this method, there are alternative solutions available.

Solution 2. Recover files from virus with data recovery tool

There is no doubt that AOMEI FastRecovery is indeed a software solution worth paying attention to, especially with its powerful features in partition management and data recovery on Windows 10 and 11. The "Recover Data" function is excellent and is the first choice for users looking for effective recovery. The software's comprehensive functionality, user-friendly interface, and commitment to security make it a reliable and feature-rich solution for managing partitions and recovering lost data.

Here is the stepwise guide on how to recover files deleted by virus attack on Windows PC:

Free DownloadWindows PCs and Servers
Secure Download

Step 1. Install and launch AOMEI FastRecovery. Choose the exact partition or disk where your data lost and click Scan.

select-drive

Step 2. Then, the recovery tool start to scan and search. lt will execute the “Quickly Scan" first for finding your deleted data fast, and then execute the “Deep Scan" for searching other lost data.

scan-and-search

Step 3. Once the scan is completed, all deleted files, recycle bins and other missing files will be displayed. Please select the file you would like to recover and then click "Recover".

choose-files

Step 4. Then, select a folder path to save your recovered files.

save-recovered-data

Step 5. Wait patiently for this process of recovering ends.

Tips for recover files deleted by virus

Recovering virus-infected files is a simple process using AOMEI FastRecovery. However, to improve results and proactively prevent future occurrences, consider taking the following precautions:

1. Do not download programs and software from any platform you do not trust.

2. Do not click any link that looks suspicious.

3. Install a reliable and trusted antivirus program on your PC.

4. Scan every peripheral device that you connect to your computer before using it.

5. Try to scan and remove the virus before file recovery.

Conclusion

Is it possible to recover files deleted by virus? The answer is absolutely yes and this post introduces two easy and safe ways to help you with it. By comparison, AOMEI FastRecovery is more available for data recovery. 

Hedy
Hedy · Staff Editor
Hedy is an editor of AOMEI Technology. She is very good at solving problems of partition management, and she wants to share all the problems she had already solved to users who met the same questions.