How to Use attrib Command to Hide or Unhide Files in Windows
Learn how to use the attrib command to hide or unhide files in Windows for better file protection.
361 views
To attrib hidden files in Windows, open Command Prompt and type `attrib +h [file or folder path]`. To make them visible again, use `attrib -h [file or folder path]`. For example, `attrib +h C:\example.txt` will hide the file, and `attrib -h C:\example.txt` will unhide it. This method is useful for protecting sensitive files and folders from casual viewing.
FAQs & Answers
- What does the attrib command do in Windows? The attrib command in Windows allows users to change file attributes, such as hiding or making files visible.
- How can I find hidden files on my computer? You can find hidden files by adjusting your folder options in Windows to display hidden items.
- Why would I want to hide files in Windows? Hiding files can provide a level of security by preventing casual users from viewing sensitive documents.
- Can hidden files be recovered? Yes, hidden files can easily be recovered by reversing the attrib command to make them visible again.