How to Recover Files Deleted/Hidden by Viruses Other viruses hide files and leave users with nowhere to unhide them. Some viruses like the Locky virus and CryptoLocker, also known as ransomware, delete computer files, encrypt them, even change the file extension to. It can be a dangerous infiltration designed to drag your computer down, erase important files, track your habits, or give hackers access to your personal information. To sum it up, a computer virus is simply a type of program that causes your computer to act in an undesirable way. But do you know exactly how viruses can damage your computer? There are many types of viruses, and they behave in different ways. If the hard drive partition or external storage device was infected by a virus, formatting it can help. Go to Settings > 'Update & Security' > 'Windows Security' > 'Virus & threat protection'. Run installed antivirus software, execute clean operation if the virus is detected. Run Command Prompt as Administrator or EaseUS M Tool > Clear virus with attrib -s -h -r /s /d *.*.