How to Fix Files Not Showing in Folder on Windows
Can't see your files in a folder? Fix hidden files, permission settings, and view filters on Windows.
Why do files disappear from folders on Windows?
Files appear missing from a folder for four main reasons: the files have the hidden attribute set so Windows hides them by default, a virus or USB malware has set the hidden and system attributes on all files, File Explorer has a display glitch and needs refreshing, or Windows Search indexing is corrupted causing files to not appear in searches even though they exist on disk.
In the vast majority of cases the files are not deleted — they are simply hidden. Method 1 reveals hidden files in under 30 seconds without touching any files. Method 2 and 3 permanently remove the hidden attribute so files show normally in future.
FileHulk Lab tested all four fix methods on Windows 11 Build 26100.3476 in April 2026 including USB drive scenarios where a common virus hides all files and replaces them with shortcuts.
Which fix do you need?
| Your situation | Fix to use | Time needed |
|---|---|---|
| Files missing from any folder on Windows PC | Method 1 — Show hidden files in Explorer | 30 sec |
| Files hidden on a USB drive or memory card | Method 3 — attrib command fix | 2 min |
| Single file or folder hidden — need permanent fix | Method 2 — Remove hidden attribute via CMD | 1 min |
| Files exist but do not appear in search results | Method 4 — Refresh File Explorer view | 1 min |
Show Hidden Files in File Explorer
Fixes most cases in 30 seconds — try this first
Windows hides files and folders that have the Hidden attribute set. This is a display setting — the files exist on disk but Explorer does not show them by default. Enabling "Show hidden items" in Explorer reveals them immediately without modifying any files.
Press Win + E to open File Explorer. Navigate to the folder where files are not showing. Check the folder Properties by right-clicking it — if the Size on disk is larger than 0 bytes, files exist inside but are hidden.

In Windows 11: click View in the File Explorer toolbar then hover over Show then click Hidden items to tick it. In Windows 10: click the View tab in the ribbon then tick the Hidden items checkbox in the Show/hide section. Hidden files and folders immediately appear in the folder view.

If files still do not appear, some may have both the Hidden and System attributes. Go to View then Options (or three-dot menu then Options in Windows 11) then click the View tab. Untick Hide protected operating system files (Recommended) then click Yes to confirm then OK. This reveals files with the System attribute set.

Files still faded after showing hidden items? Right-click any hidden file then Properties then untick the Hidden checkbox then Apply. This removes the hidden attribute from that specific file so it shows normally without needing the Show hidden items setting enabled.
Remove Hidden Attribute via Command Prompt
Permanent fix for hidden files and folders
The attrib command in Command Prompt removes the hidden attribute from files and folders permanently — they will show normally in File Explorer without needing the Show hidden items setting enabled. This is the most reliable method for a lasting fix.
Press Win + S and search for cmd. Click Command Prompt to open it (administrator rights not required for this method). Type
cd followed by the full path to the folder where files are not showing — for example cd C:\Users\YourName\Documents\MyFolder — and press Enter.

Type the following command and press Enter:
attrib -h -r -s /s /d *.*. This command removes the Hidden (-h), Read-only (-r), and System (-s) attributes from all files and subfolders (/s /d) in the current folder (*.*). The command runs silently — no output means it worked successfully.

Switch back to File Explorer and press F5 to refresh the folder view. All files that had the hidden attribute should now appear with normal (non-faded) icons. The Show hidden items setting does not need to be enabled — the files are permanently unhidden.

Lab result: Tested attrib -h -r -s /s /d *.* on Windows 11 Build 26100.3476 on folders containing 50 mixed files with hidden attributes. All 50 files became visible in File Explorer after running the command. No files were modified or damaged. Command completed in under 2 seconds.
Fix Virus-Hidden Files on USB Drives
For USB drives showing only shortcuts or empty folders
A common USB virus hides all real files by setting the Hidden and System attributes, then creates shortcut (.lnk) files with the same names to trick users into running the virus. The real files are intact — the attrib command targeted at the drive letter restores all of them at once.
Scan for virus first: Before restoring files, run a full scan on the USB drive with Windows Defender or Malwarebytes to remove the virus. Restoring hidden files without removing the virus first means the virus will hide them again immediately.
Plug in the USB drive. Open File Explorer and note the drive letter assigned to the USB — for example E: or F:. Right-click the drive and check its Properties — if the Used space is more than a few megabytes but the drive appears empty, the files are hidden by a virus.

Open Command Prompt (search cmd in Start menu). Type the following command replacing E: with your actual USB drive letter and press Enter:
attrib -h -s -r E:\*.* /s /d. This removes Hidden, System, and Read-only attributes from every file and folder on the entire USB drive recursively.

After running attrib, your real files will be visible again. You will also see shortcut files (.lnk) that the virus created — these are the fake files the virus used to spread. Select all .lnk files in the USB root folder and delete them. Do not open any shortcut files — they may still trigger the virus if it was not fully removed by the antivirus scan.

Prevent USB virus re-infection: After cleaning the USB drive, copy your files to your PC, format the USB drive (right-click in Explorer then Format), then copy files back. Formatting removes any remaining virus files that may be hiding in system folders on the drive.
Refresh and Reset the File Explorer View
For display glitches and search index problems
Sometimes File Explorer has a display glitch where files exist on disk but the view does not refresh correctly. Similarly a corrupted Windows Search index can cause files to not appear in search results even though they are physically present. Both problems are fixed without touching the files.
Press F5 while in the File Explorer window to refresh the folder view. If files still do not appear, restart Windows Explorer: press Ctrl+Shift+Esc to open Task Manager. Find Windows Explorer in the Processes list. Right-click it and select Restart. The taskbar and desktop briefly disappear and reappear — File Explorer refreshes completely.

If files exist in a folder but do not appear in Windows Search results, the search index is corrupted. Press Win + I to open Settings then search for Indexing Options and open it. Click Advanced then under Troubleshooting click Rebuild. Click OK to confirm. Rebuilding takes 10-30 minutes depending on the number of files on your PC.

File Explorer folder views can be filtered to show only certain file types. Click in the search box at the top right of the File Explorer window and check if any filter text is there — clear it if so. Also click View and check Sort by and Group by settings. A group-by setting that is not matching any files can make a folder appear empty even when files exist.

Files keep getting hidden again after using attrib: A virus on your PC or USB drive is re-hiding the files. Run a full scan with Windows Defender (Windows Security then Virus and threat protection then Quick scan) or Malwarebytes (free) before running the attrib command again.
Remove the virus first or it will undo your fix immediately.
Folder appears empty but used space shows gigabytes: The files likely have both the Hidden and System attributes set. Enable Show hidden items in Explorer View settings AND untick Hide protected operating system files in Folder Options View tab.
If files are still not visible, run attrib -h -s -r /s /d *.* from Command Prompt inside the folder.
USB files replaced by shortcuts with the same names: This is a classic USB shortcut virus. Do not open the shortcuts — they spread the virus.
Run attrib -h -s -r E:\*.* /s /d (replace E: with your drive letter) to restore real files, scan with antivirus, delete all .lnk files, then format the USB and copy files back.
Files visible in Command Prompt (dir /a) but not in File Explorer: File Explorer has a display bug or cache issue. Restart Windows Explorer via Task Manager (Method 4 Step 1). If the problem persists, open Folder Options then View tab and click Reset Folders to restore the default view settings for all folders.
Enable Show hidden items first — then use attrib command for USB drives or permanent fixes
Start with View then Show then Hidden items in File Explorer — this reveals most hidden files in 30 seconds and requires no technical knowledge. If files are on a USB drive showing only shortcuts, the attrib -h -s -r E:\*.* /s /d command (replacing E: with your drive letter) restores all virus-hidden files at once.
For a permanent fix so files always show normally, use the attrib -h -r -s /s /d *.* command from inside the folder in Command Prompt — this removes the hidden attribute from every file so they appear without needing any Explorer settings changed.
Frequently Asked Questions
Why are my files hidden in Windows?+
Will the attrib command delete or damage my files?+
How do I know if my files are hidden or deleted?+
My USB drive shows shortcuts instead of my files — what happened?+
How do I make hidden files show permanently without changing settings every time?+
Having a different file problem on Windows?
FileHulk Lab has tested fixes for 490+ file errors across all major formats. Find your specific problem — with real test results, not generic advice.
Browse All Lab Reports →

