Create Folder Lock In Windows Without Any Software



Many times we face the problem to protect any type of data on the PC or any office where friends and colleagues are also using the device. But the biggest problem we face is to protect your data in a personal device. If you are thinking of buying any software to protect your data, such as a folder or disk lock. Then I suggest you don't buy any of these things.

After using this free trick lock folder. I'm sure you won't think about wasting precious money to buy any kind of distinct products for data protection. This can be open easily but for data protection for those who do not have technical knowledge about computer then this method works like a charm.




Steps To Create Folder Lock

  • First of all open notepad on your PC and paste the following script in it.
Script :-
@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%==mypass 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
  • Your default password is " mypass " if you wish to change the password replace it with your new password in the script before saving.
  • Now save this as locker.bat and find " save as type " and select " all files " from the drop down when saving 


  • Now run locker.bat and your folder will be created, run it again and type Y and press enter to confirm and lock the folder.
Now whenever you want to open that folder run locker.bat file enter the password and your folder will be opened. 


Previous
Next Post »