Show files hidden by a computer virus using command prompt
Edited by Michael J., Eng, Maria Quinney, Alma and 25 others
There are two common ways to unintentionally lose your valued computer files; either you messed them up or something else did. If you are certain you aren't the culprit, there is usually only one other cause - a computer virus. Before you panic at the idea of losing your files forever, you need to check to see if they are indeed lost or just hidden from plain sight.
This article will guide you through the process of restoring hidden files via Windows Command Prompt.
- 1 Instructions
- 2 Tips Tricks & Warnings
- 3 Questions and Answers
- 3.1 How to unhide file in PC from cmd?
- 3.2 For Windows 7 Users
- 3.3 For Windows 10 Users
- 3.4 How to remove the virus permanently?
- 3.5 How does this virus work on my computer and how to change the attribute to resolve this issue?
- 3.6 Hi, just a quick question?
- 3.7 Losing storage losing a GB a day have lost 70 GB's last 3 month's?
- 3.8 How do I recover lost files ? cmd command is not working :(?
- 3.9 How can show the hidden folders that are had been virus?
- 3.10 Tryi ng to get rid of aww snap on computer has a virus in it?
- 4 Comments
Instructions
- 1You can choose whatever method you prefer from the options below.Open Command Prompt, which can be done a number of ways.
- Click on the Windows Key (or Start button) and type in "cmd" in the Search Bar and hit Enter.
- Click on the Windows Key (or Start button) and type in "run" in the Search Bar and hit Enter. A dialog box will appear. Type in "cmd" in the input field and hit Enter.
- Alternatively, you can press the Windows Key + R on your keyboard simultaneously. This is a shortcut method for invoking the Run dialog box.
- 2
- 3
- 4This will list all the hidden files in the current directory (Drive F:) and display them in the command prompt. However, this command does not restore the hidden files. This only allows you to check if your "lost" files are really lost, or just hidden inside the directory. If your files are indeed listed, then you can proceed to the next step to restore them.Type in the following "dir/ah" (without the quotes).
- 5
- 6This is normal, especially if there are a lot of files involved. Please be patient and wait until the blinking cursor resurfaces.The command prompt may seem unresponsive while the unhide command is being performed.
- 7Please Note: If you are getting "access denied" reply, you will need to re-open the Command Prompt with administrator access and redo the commands listed below.
- To load the Command Prompt with administrative access,
Tips Tricks & Warnings
Questions and Answers
How to unhide file in PC from cmd?
To unhide a file on your PC using CMD, please do the following.
- 1Press Windows key and R on your keyboard simultaneously, then type "cmd" without the quotes then hit enter.
- 2Type in CD\ and hit Enter.
- 3To find the directory of the folder where the hidden file is located, e.g if your hidden file is located in Documents folder type "CD\Users\username\Downloads\Documents" (without the quotes) and then hit Enter.
- 4-h /s /d") without the quotes/brackets then hit Enter to unhide the files hidden in the folder.Then type ("attrib *.
- 5That's it.
- 6If you are getting "access denied" reply, log-in as administrator on your PC.Note:
- If you are already logged in as the administrator, you will need to run the Command Prompt as administrator.
For Windows 7 Users
- 1On your desktop, click on the 'Start' menu.
- 2Select 'Control Panel'.
- 3Click on the 'Appearance and Personalization' option.
- 4Select 'Folder Option'.
- 5Click on the 'View' tab.
- 6Now scroll down to the 'Hidden files and folders' section.
- 7Select the 'Show hidden files' option.
- 8Click on the 'OK' button.
- 9Your files should now be unhidden.
- If you're still unable to view your files, follow the instructions in our main guide.
- If you need more help un-hiding your files, let us know in the Q&A section below.
For Windows 10 Users
- 1Left-click on the "Start" menu.
- 2Left-click on the "Settings" icon.
- 3Left-click on the "Find a setting" search box.
- 4Type in "Show hidden".
- 5Left-click on "Show hidden files and folders".
- 6In the File Explorer Options pop-up window, locate the "Hidden files and folders" area.
- 7Left-click on the circle beside "show hidden files, folders, and drives".
- 8Left-click on the "OK" button.
- 9All hidden files and folders should now be unhidden.
- If you're still unable to view your files, follow the instructions in our main guide.
- If you need more help un-hiding your files, let us know in the Q&A section below.
How to remove the virus permanently?
I use McAfee antivirus even though I scan the drive, it produces the null virus; but after also my system do the malfunctions like while inserting the pen drive it shows *.exe file and it's dynamically changing the data. Please help for this. I have tried: I didn't try anything
Antivirus programs do not see all types of threats. To cover the entire range of threats that can harm your computer, you will need to download the following programs:
After you download both programs, start with installing Malwarebytes' Anti-Malware. Let it update its databases and click the "Scan" tab. Insert your flash drive into your computer. Select "Threat Scan" and click "Start Scan". After it has checked the drives, reboot the system and repeat the same scanning procedure over again.
Then, move on to Spybot: Search and Destroy. After installing it, right-click the icon in the system tray. Choose "Update". Click "Update" once new update files have been found. Then, close the window. Right-click the icon of Spybot in the system tray again. Click "System Scan". Click "Start a scan". After the scan has been completed, reboot the computer and rescan the system.
How does this virus work on my computer and how to change the attribute to resolve this issue?
Last week, my Pen Drive was affected by a virus, its action is like make all the folder shortcuts. I went to safe mode and removed the virus from the pen drive but it made all folders hidden.
In order to find these hidden files, you need to plug in your Pen Drive and begin following the steps above in the how-to guide. Once you get to the step in which you have to type in the drive letter, you will need to type in the letter that represents your pen drive. Then continue on with the how-to guide.
Hi, just a quick question?
I've never been on this site before, do I have to pay for it?....
No, this is free of charge site. Please feel free to ask.
Losing storage losing a GB a day have lost 70 GB's last 3 month's?
Lose GB's over night .use this unit very seldom.must be a virus but can not find it Microsoft Sec. Ess. shows nothing.
VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.
How do I recover lost files ? cmd command is not working :(?
My PC is infected from virus. I did hide the one of the folder from my PC, Now I am trying to find the folder using (show hidden files) the whole folder is disappeared. I tired to recover it using both methods from article ""show files hidden bu computer virus using cmd"" I could not. . . Please help me to get out of this trouble my all office data is lost. My data is located in "local disk (D:)" inside folder in a folder when I am following the steps after (attrib -h /s /d) bellow message is appearing
"""Not resetting system file -D:\System Volume Information""". I have tried: I tried by simple following show hidden files from PC menu and also following Show_files_hidden_by_a_computer_virus_using_command_prompt# from article. I think it was caused by: My PC is infected from virus currently running Windows 7 (32 bit)
VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.
I have some folders that had been hidden in my old laptop due to virus. it means folders are not bold same as other folders. but I can see them by in option"show hidden" . at present my new documents was copied to new laptop . the contains of folders is not showed even by using option "show hidden folders". . how can I to use these folders?
VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.
Tryi ng to get rid of aww snap on computer has a virus in it?
Aww snap ahs taken ove my computer and only affects Gmail and face book. Can not find where aww snap is on computer to delete it has taken ove Gmail and Facebook. I have tried: Everything possible had a computer tech work on it can not find anthing. I think it was caused by: Whe I downloaded the new windows ten version yhat whe it came up
VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.
If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.
Comments
Article Info
Categories : Antivirus
Recent edits by: NasirPAK, Chris Stipe, DeleteQnA