
Many people want to lock their folders , you may do it by using compressed folders but it only locks the content inside , you can see what is inside but when you want to excess it they ask for a password. This hack allows you to lock a folder and allow it to disappear. only when you enter the password it will show up your folder and you will allow you to access your folder.
Instructions
- First Create a notepad file
- Copy this into it –
cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303
09D}” 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%== TYPE YOUR PASSWORD HERE 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
- Replace “TYPE YOUR PASSWORD HERE” in the above text with your password.
- save it as locker.bat
- now start locker.bat
- it will create a new folder
- put your content over there , what you want to password protect.
- now run locker.bat again
- now the folder will disappear. To get it back simply double click locker.bat , enter your password and then you will get your folder back!

It looks like all your script does is hide the folder. Not too mention, if somebody wants to know the password, they only have to open the locker.bat to see it.
Not a very good solution I’m afraid.
i recommend using a.bat to .exe converter after you have made to the file to prevent people from editing your password.
@Ben Lucier – Look this is just an alternative , if anyone is that intelligent to open the .bat file and seek out the password , you shall be more intelligent to use some other software to lock your files
@roh0man – Nice idea !
other people can edit the .bat file and can change the password without u knowing
I have created one and lock it and when i try to unlock it by mistake i have wrong spelling and when i tried again a new folder created so can i get my last locked folder.
You can actually set a password on your personal file or folder with Folder Password Expert. I’ve used it since 2002. I do not know why this program was not mentioned in the article as it is quite possibly one of the most recommended applications of its kind.