Download Article
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.
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] X Research source
- If you want to hide the folder and everything with the file, use
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!
References
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 90,678 times.
Advertisement