Windows

Best Way to Hide Files in Windows using CMD

hide files in windows using cmd tg cover main
Best Way to Hide Files in Windows using CMD 20

If you share your computer/laptop with friends or coworkers, you should be aware that some of them may attempt to access your personal files. This is simple to do if you do not take precautions. So, if you’re concerned about someone gaining access to private files or folders. Here, we will share the best way you can do to improve security.

In this article, we’ll show you how to hide files in Windows using CMD. Using this method, your file will not be visible even if you enable “Show hidden files, folders, and drives” from Control Panel > File Explorer Options > View.

Also Read: How to Mirror your Android Screen to Windows [2023 Guide]

How to Hide All Files from Folder using CMD

Step 1. Go to the folder containing the files you want to conceal/hide.

Step 2. Type CMD in the address bar.

hide files in windows using cmd tg
Best Way to Hide Files in Windows using CMD 21

Step 3. Then type attrib +h +r +s and press enter.

hide files in windows using cmd tg 2
Best Way to Hide Files in Windows using CMD 22

Step 4. Your all files are now hidden.

Also Read: Instagram introduces Quiet Mode: know how it works!

How to Unhide your All Files

Step 1. Again type CMD in the address bar.

Step 2. Now type attrib -h -r -s and press enter.

hide files in windows using cmd tg 3
Best Way to Hide Files in Windows using CMD 23

Step 3. Now your files will start showing.

How to Hide a Single File from a Folder

Step 1. Open the folder of the file you want to hide.

Step 2. Type CMD in the address bar.

hide files in windows using cmd tg
Best Way to Hide Files in Windows using CMD 24

Step 3. Then type attrib +h +r +s “Your File Name with Extension” and press enter.

Example: "attrib +h +r +s TechforGeeks.rtf"
hide files in windows using cmd tg 4
Best Way to Hide Files in Windows using CMD 25

Step 4. Done! your file is now hidden.

How to Unhide a Single File from a Folder

Step 1. Open the folder of the file you want to hide.

Step 2. Type CMD in the address bar.

hide files in windows using cmd tg
Best Way to Hide Files in Windows using CMD 26

Step 3. Then type attrib -h -r -s “Your File Name with Extension” and press enter.

Example: "attrib -h -r -s TechforGeeks.rtf"

Step 4. Done! Now your files will start showing.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button