Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - It's Geekalicious.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews




spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Macrium Reflect FREE Edition
3. Smart Defrag
4. K-Lite Mega Codec Pack
5. MusicBee
6. Sergei Strelec's WinPE
7. ATTO Disk Benchmark
8. Format Factory
9. GetGo Download Manager
10. Add or Remove 'Maximum processor frequency' in Windows 10
More >>

top reads

Star Aviator Betting Game Secrets: Unlock 97% RTP & Triple Your Wins

Star Windows Recall: What It Is, Why Hackers Will Love It, and How to Stay Safe

Star Star Trek Fleet Command Promo Codes: Redeem Codes for Free Shards, Blueprints And Resources

Star Best Apple Pay Casinos USA 2025 – Top Apple Pay Sites

Star How To Use VLC Media Player to Trim Video Clips

Star What Is the $WinREAgent Folder and Can I Delete It?

Star Swear Your Way to Better Search Results

Star How to Get a Dark Start Menu and Taskbar in Windows 10 & 11

Star Enable, Disable, Manage, Delete or Create a System Restore Point

Star PowerShell and Command Prompt 101


MajorGeeks.Com » Overview» Tutorials and Video Guides » How to Hide Files or Folders Using Command Prompt or PowerShell

How to Hide Files or Folders Using Command Prompt or PowerShell

By Timothy Tibbetts

on 06/16/2023

Hiding files or folders from the File Explorer view is a great way to protect files from being deleted or found. Installing a third-party program can do the trick, although if you're trying to hide files from someone, it could tip them off. In this guide, we look at hiding files or folders using the Command Prompt or PowerShell. We recommend you use the Command Prompt as one command (list hidden files or folders) does not work in PowerShell.



Before we get started, keep in mind that some files and folders shouldn't be hidden including operating system files. Your best bet is to create a folder to hide to avoid any possible problems.

1: Hide Files or Folders

Open the Command Prompt or PowerShell. You'll want to know the path to the files or folders you want to hide. In our examples, we've created a folder called Hidden as an example.

To hide an individual file or folder in attrib +h C:\PathToTheFileOrFolder.



As you can see, our Hidden folder is now, well, hidden. We are assuming that you have show hidden files, folders, and drives off. Otherwise, they will still show up, but with a lighter colored folder as seen here:



Once you understand how to hide and unhide files and folders, see step 4 for how to Super Hide them.

To hide all files and subfolders in your target location, type in attrib +h C:\PathToTheFileOrFolder /s /d.

2: List Hidden Files or Folders

At some point, you might want to see the files or folders you've hidden. In this case, using the CD command to go to the hidden folder and type in dir /a:h. Note: This does not work in PowerShell.

3: Unhide Files or Folders

To unhide an individual file or folder type in attrib -s -h C:\PathToTheFileOrFolder

To unhide all files or folders type in attrib -s -h C:\Hidden\* /s /d

4: Super Hide Files or Folders

The only downside to this method is anyone who knows how to show hidden files, folders, and drives can still find your hidden files.

To completely hide files or folders (Super Hide) use attrib +s +h C:\PathToTheFileOrFolder.

Now your files are hidden even if hidden files and folders is enabled.

To unhide your files or folders, use attrib -s -h C:\PathToTheFileOrFolder.

comments powered by Disqus





© 2000-2025 MajorGeeks.com
Powered by Contentteller® Business Edition