This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene has been writing and editing tech content at wikiHow since 2019. She previously worked for AppleCare, served as a writing tutor, volunteered in IT at an animal rescue, and taught as an adjunct professor for EN101 and EN102. Darlene has completed Coursera courses on technology, writing, and language. She holds both a BA (2011) and an MA (2012) from Rowan University in Writing, with a focus on workplace communication. With her extensive experience, academic background, and ongoing learning, Darlene has become the go-to grammar expert for her friends and family, as well as a skilled wordsmith for anyone in need.
This article has been viewed 96,699 times.
Learn more...
You can hide files if you share a computer and don't want them to be seen, or you can hide files simply to prevent yourself from deleting them. This wikiHow will teach you how to hide files on your PC using the Windows Command Prompt.
Steps
-
Press ⊞ Win. Your Start menu will open.
-
Type "Command Prompt." When you open the Start menu and begin typing, you'll automatically perform a search for your keywords.Advertisement
-
Click the Command Prompt search result. This is listed as an application that you can run.
-
Navigate to the files you want to hide. Use
cd C:\Users\admin\Desktop\Files
as a template and continue the file path until you're in the same folder as the files you want to hide.- You can find the file's location by finding it in your File Explorer, right-clicking it, then clicking Properties > Location. Refer to How to Find a File's Path on Windows for more information.
-
Enter the following code and press ↵ Enter:
attrib +h "Secret Files"
. Replace "Secret Files" with the name of the file you want to hide; you only need quotation marks if you have a space in the file name.- If you want to hide the folder and everything with the file, use
attrib +h /s /d
. - To make the files visible again, type
attrib -h "Secret Files"
. Again, change the words "Secret Files" to your files' name. To unhide the entire folders' contents, typeattrib -h /s /d
[1]
- If you want to hide the folder and everything with the file, use
Expert Q&A
Video
Tips
References
About This Article
1. Press the Windows key.
2. Type Command Prompt and click the Command Prompt search result.
3. Navigate to the files you want to hide.
4. Enter attrib +h "Secret Files".