In this post I will tell you how to create a simple folder locker which would hide the folder you want to lock. No software required, its just very simple to create it.
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 Enter password to lock folder or for cancel press N echo (Provided by: www.downloadandlearning.blogspot.com) set/p "cho=>" if %cho%==XXXX goto LOCK if %cho%==n goto END if %cho%==N goto END echo Invalid choice.
echo (Provided by: www.downloadandlearning.blogspot.com)
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
echo (Provided by: www.downloadandlearning.blogspot.com)
goto End :UNLOCK echo Enter password to Unlock folder echo (Provided by: www.downloadandlearning.blogspot.com) set/p "pass=>" if NOT %pass%==XXXX 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
echo (Provided by: www.downloadandlearning.blogspot.com)
goto End :FAIL echo Invalid password.
goto end :MDLOCKER md Locker echo Locker created successfully
echo (Provided by: www.downloadandlearning.blogspot.com)
goto End :End
- Copy this Code into notepad and replace the XXXX with your password.
- Save it with .bat extension(for eg: locker.bat).
- Copy the Batch file to the place where you want to create your locker folder.
- Now double click the Batch file.
- Now you can see the Lock folder is created.
- Place your files into lock folder which you want to protect.
- Again double click the Batch file, it will ask you to enter the password to lock the folder. Enter the password.
- Now the folder will be Locked and will become invisible.
- To unlock again double click the Batch file, enter the password.
- You can see the Lock folder.