Hide and unhide folders with Command Prompt:
1. Hide folders
Example: Hide a folder named "Documents" in C disk.
Way 1: Directly use an attrib command to hide the folder.
Step 1: Simultaneously press Windows key and R key to open Run dialog box, input cmd and click OK to open Command Prompt.
Step 2: Input "attrib +s +h c:\documents" (without double quotation marks) in the Command Prompt window and click Enter.
Tips: In this attrib command, "+" stands for setting an attribute, "s" represents system file attribute and "h" means hidden file attribute. Moreover, "c:" is the drive letter and "documents" is the folder name. By analogy, if you want to hide a folder in another hard disk, you can use the attrib command by changing the drive letter and folder name.
For instance, suppose you would like to hide a folder titled "Summary" in E disk, you can input "attrib +s +h e:\summary" (without double quotation marks) in the Command Prompt and press Enter.
Way 2: Enter the disk directory and then use an attrib command to hide the folder.
Example: Hide a folder called "Summary" in E disk.
Step 1: Type e: in the cmd and tap Enter to go to the E disk directory, as shown in the following picture.
Step 2: Input attrib +s +h summary and press Enter.
Tips: Use this attrib command through changing the folder name (referred to "summary") to hide another folder.
2. Unhide Folders.
Accordingly, there are two methods to unhide folders.
Method 1: Directly use an attrib command to unhide the folder (referred to "Documents" folder in C disk).
Input attrib –s –h c:\documents and hit Enter.
Note: In the attrib command, "-" means clearing an attribute.
Method 2: Go to the disk directory in cmd and then use an attrib command to unhide the folder ("Summary" folder in E disk).
Step 1: Enter e: and tap Enter.
Step 2: Input attrib –s –h summary and press Enter.
Hide and unhide files with Command Prompt:
1. Hide files
Example: Hide a txt file named "goals" in E disk.
Enter attrib +s +h e:\goals.txt and tap Enter.
Tips: "goals.txt" refers to the full name of the document (including file extension name). So, you can change the file name and use the attrib command to hide other files.
2. Unhide files.
Input attrib –s –h e:\goals.txt and press Enter to unhide the "goals" document.
Now, you can try the above methods and see if they work well in your computer.
I am unable to find my folders how to unhide.
1. click start>>run>>type in "cmd"
2. type the location of your flash drive.. e.g. "d:", "e:", "f:", etc..
3. type "dir /ah"
*you will now see the files/folders with hidden attributes
4. type "attrib [name of file/folder] -r -a -s -h"
*if you're going to unhide files, you should type the whole name plus the extension (format).. example "attrib party.jpg -r -a -s -h"
**if you have folders with 6 characters and above, type the first 6 characters then "~1".. example for folder named "birthday"
"attrib birthd~1 -r -a -s -h"
5. you should repeatedly type dir /ah after unhiding some files/folders so you'll know if they're now working or not..
6. now check you flash drive.. it should be there..
2. type the location of your flash drive.. e.g. "d:", "e:", "f:", etc..
3. type "dir /ah"
*you will now see the files/folders with hidden attributes
4. type "attrib [name of file/folder] -r -a -s -h"
*if you're going to unhide files, you should type the whole name plus the extension (format).. example "attrib party.jpg -r -a -s -h"
**if you have folders with 6 characters and above, type the first 6 characters then "~1".. example for folder named "birthday"
"attrib birthd~1 -r -a -s -h"
5. you should repeatedly type dir /ah after unhiding some files/folders so you'll know if they're now working or not..
6. now check you flash drive.. it should be there..
No comments:
Post a Comment