PDF download Download Article PDF download Download Article

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.

  1. Your Start menu will open.
  2. " When you open the Start menu and begin typing, you'll automatically perform a search for your keywords.
    Advertisement
  3. This is listed as an application that you can run.
  4. 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.
  5. 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, type attrib -h /s /d[1]
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
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.
How helpful is this?
Co-authors: 4
Updated: December 14, 2024
Views: 96,699
Categories: Command Prompt
Article SummaryX

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".

Did this summary help you?

Thanks to all authors for creating a page that has been read 96,699 times.

Is this article up to date?

Advertisement