How to Unhide Virus Affected Files and Folders from Command Prompt
Why My Files get hidden?
A file or folder could be hidden due to two reasons, if a user makes it hide or due to virus effect. If users make a file hide then it’s easy to restore it but if it’s due to a virus effect then it’s difficult for a normal user to unhide it. Today I am going to explain you How to restore your virus affected hidden files and folders using Dos Command Prompt? Before we continue let’s take a short note on why virus affect my system even I have antivirus installed on it.
Why My Antivirus is not working?
Virus attacks are very dangerous sometimes even we have antivirus installed on our computer. As I am an IT Engineer many people and my clients ask me questions that why my PC get affected from a virus or Trojan when I have an antivirus installed on it. First I would like to confirm you that an antivirus can stop a virus attack if it has the definition of that virus. to get all the definitions you need to update your antivirus at-least once in a week. this is the most common reason but your antivirus may fails to work due to some more reasons like:
You are using a free version of antivirus.
You are using a cracked or duplicate version of antivirus.
You are using a low quality antivirus.
How to Unhide or Restore Virus Affected Hidden Files and Folders?
It’s a very common question that I have clean my whole system through antivirus but the effects of the virus has not yet removed. Some viruses leave major effects behind after removal and one of those effects is -all of the files and folders get hidden in the PC. One of the trendy viruses these days which is hiding files is Win7 recovery virus. You cannot unhide them with the simple technique; you need to go through the command prompt. let’s see how to do?
Windows8, 7 or Vista
Click on start button, in search bar type cmd and press enter.
Windows XP or lower
Click start and then click on RUN and type cmd and press enter.
You will see a following black window opened.
Type attrib -s -h -r c:/*.* /s /d and press enter
It will start working and will take a few seconds to finish.
Note: - in the attrib command you can see a *.*. Before this *.* you can see a drive letter c:/. Type only that drive name in which you want to unhide your files and folders. Like if you have three drives in My Computer C, D and E and you want to unhide your files in D drive then the attrib command will be like this: -
attrib -s -h -r d:/*.* /s /d and press enter
It will unhide all files and folders in your D drive. You can apply this command only on read and write media like your hard drive or pen drive. This command is not able to work with cd-drives.
And here’s finished the journey. Hope you enjoy reading this.