# Lock & Hide Folders


Ever wanted to lock and hide your windows files and folders behind a password? The windows hide option is just not secure enough? Worry not!

BAT File
FolderLocker.bat 922B

  • Download the FolderLocker.BAT file from the link above or copy the code from underneath.
  • Edit the BAT file in a text editor and replace where it says Your-Password-Here with your own password. Ctrl + S.
  • Double click the .bat file and it will create a folder named Locker.
  • Add any files and/or folders to this Locker folder.
  • Double click the .BAT file again and enter your password to lock the folder.
  • The folder will disappear.
  • In order to access the folder again, double click the FolderLocker.BAT file.
    • It will ask for the password that you previously set.
    • Input the password and press enter.
    • You will gain access to your locked folder!
  • To lock the folder again, double click on the .BAT file again.
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-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