How To Hide Files Without Any Programs ? Windows 7-10-11
How To Hide Files Without Any Programs? (Windows 7-10-11)
When you want to protect sensitive files or simply keep things private on your computer, you don't always need expensive software.
Windows offers a built-in way to hide your files easily — and even better, you can automate the process using a small batch file!
In this post, you'll learn:
-
How to manually hide files/folders
-
How to create a script to hide and unhide them easily
Let’s dive right in! 🚀
Method 1: Manually Hide Files or Folders
Here’s the fastest way:
-
Right-click the file or folder you want to hide.
-
Select Properties.
-
Under the General tab, check the box labeled Hidden.
-
Click Apply, then OK.
🔥 To show hidden files again:
Go to any folder → Click View → Check Hidden Items.
Method 2: Use a Batch File to Hide and Lock Files
If you want to automate hiding/unhiding and add a basic password, you can create a simple .bat
file!
Here’s a ready-made code you can use:
How to Use This Script?
-
Open Notepad.
-
Paste the above code into it.
-
Replace
YourPasswordHere
with the password you want. -
Save the file as Locker.bat.
-
Important: Choose Save as type → All Files when saving.
-
-
Double-click on Locker.bat to create a folder named MyFolder.
-
Move your private files into MyFolder.
-
Run Locker.bat again and press
Y
to hide and lock it!
✅ To unlock, run Locker.bat, enter your password, and your files will reappear.