Lock The Folder With A Password And Hide It From Drive



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%==YOURPASSWORDHERE 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

Follow the below steps to Lock the folder With a password : 


1.Take a notepad and copy the above code with any file name, am using 123 here


2.Write your own password in the place of "YOURPASSWORDHERE" in the above code, where am using my password as 123 in this example.

3.Now rename it to extension “.bat” and it should look like below file



4.Clicking on this file will open a new folder with name "Locker"



5.Copy all the files you want to hide to this "Locker" folder and again click on file 123 which we created and it should ask a confirmation to Lock. Clicking on yes will Lock and hide the folder.



6.To open the Locker, click on the file 123 and it will ask you the password to open.
Give the password and hitting enter will unlock and show you the folder Locker and all your files in it.



Hope its pretty easy to follow all these simple steps.

If you are stuck at anywhere or need anymore help 
feel free to ask by below comments section

Previous
Next Post »