top of page
Search
Ganesh Kadam

How to hide files and folders using Command Prompt

  1. Open Start.

  2. Do a search for Command Prompt and click the result.

  3. Type the following command to navigate to the items you want to hide and press Enter: cd C:\Users\admin\Desktop\Files In the command replace the path after cd with the path to your file or folder.

  4. Type the following command to hide a folder or file and press Enter: attrib +h "Secret Files" In the command replace "Secret Files" with the name of your folder or file. Quotation marks are only necessary when there are spaces in the name.

If you're trying to hide a folder with files and subfolders, which you also want to keep hidden, then you'll need to use these steps as well.


  1. While in Command Prompt type the following command to navigate inside the hidden folder and press Enter: cd "Secret Files" In the command replace "Secret Files" with the name of your hidden folder.

  2. Type the following command to hide all files and folders inside the hidden folder and press Enter: attrib +h /s /d


After completing the steps, the items with the hidden attribute will no longer be visible.

215 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page