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 October 25, 2023

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 Partition Assistant Professional 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:

Download Pro DemoWin 11/10/8.1/8/7/XP
Secure Download

Step 1. On the main interface, click Recover > Recover Data.

recover-data

Step 2. Choose the drive where the data you want to recover is saved and click Start Scan.

recover-windows-data

Step 3. After scanning, all lost data on the drive will be listed. Then, tick the target file and click Recover file.

select-recover-data

Step 4. Here, choose the proper path to save it.

select-saved-path

Step 5. When the recovery is finished, close the software and go to the target location to find the files.

restore-successfully

Tips for recover files deleted by virus

Recovering virus-infected files is a simple process using AOMEI Partition Assistant Professional. 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 Partition Assistant Professional is more available for data recovery. It can not only get files back from virus attacks, but also from accidental deletion, wiped hard drives, disk formatting, and more.

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.