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
      Advertisement

      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

      Article Summary X

      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 87,068 times.

      Is this article up to date?

      Advertisement