Lock Folders on Windows Without Software 🔐📂

Keep your private files safe from prying eyes using built-in Windows tools.
No downloads, no subscriptions—just pure productivity hacks.


Why Use Built-in Locking?

  • Zero Cost – You don't need to buy premium "Folder Lock" software.
  • 🕵️ Privacy First – Hide sensitive client data or personal documents instantly.
  • 🪪 Lightweight – Unlike heavy apps, these methods don't slow down your PC startup.

Updated 2026 – Tested and working on Windows 10 & Windows 11!

The "Invisible Locker" Script Method 💻

Step 1: Right-click on your desktop > New > Text Document.

Step 2: Copy and paste the code below into that document.

Step 3: Replace YOUR_PASSWORD with your desired password.

Step 4: Save as Locker.bat (Set "Save as type" to All Files).

Copy this code into your .txt file:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set /p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set /p "pass=>"
if NOT %pass%== YOUR_PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Action Plan: How to Use It 🛑

Once your script is saved, follow this simple routine:

Step 1: First Run 🔄
Double-click Locker.bat. A folder named Locker will appear. Move all your private files into this folder.
Step 2: Hide It 🚫
Double-click the script again. It will ask if you want to lock the folder. Type Y and press Enter. The folder is now hidden and protected!
Step 3: Access Again 📱
To see your files, run the script and enter your password. The "Locker" folder will reappear instantly.

Time for a New, Unhackable Password! 🔐

A folder lock is only as strong as its password.
Don't use your birth year or name. Use our free tool to instantly generate a complex password that no hacker can crack!

Open Secure Password Generator →