How to Hide or Unhide Files & Folders with Command Prompt

preview_player
Показать описание
When you have any file or folder you want to keep away from prying eyes, use this guide to hide them using File Explorer or Command Prompt

No matter what kind of content you keep on your computer, you'll always find reasons to hide certain files and folders. Perhaps you have important documents and videos that you want to keep under wraps, or you simply want to prevent users from accidentally deleting certain files if you're sharing your PC with other people.

For whatever the reason it might be, on Windows 10, you can quickly hide a file or folder in two different ways, including using File Explorer or using the attrib command using Command Prompt.

In this Windows 10 guide, we'll walk you through the easy steps to hide a file and folder on your computer. Also, you'll learn the steps to access those hidden items as needed.

How to hide files and folders using File Explorer
The easiest way to keep content hidden is by using File Explorer.

01. Open Start.

02. Go to Folder or File Patch

03. Type "CMD" and Enter

04.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 title.

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.

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

Making hidden files and folders visible again

If you change your mind, you can use the following steps to remove the hidden attribute for files and folders.

01. Open Start.

02. Go to Folder or File Patch

03. Type "CMD" and Enter

Type the following command to make the items visible again 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 title.

In this case, you also set the hidden attribute for files and subfolders inside of a folder, then do the following to remove the attribute.

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.

Type the following command to remove the hidden attribute from all files and folders inside the folder and press Enter:

attrib -h /s /d

********** 👤Connect with Us: ******************

********* // Other Great Resources: ***********

Рекомендации по теме
Комментарии
Автор

machn innam conjam explain a pottal nallam adithadu last a mudivikka kolla subcribed pann sellimlight a senna nalla ikum

shamsanmohamed