How to Create your own FOLDER LOCK using notepad

How to Create your own FOLDER LOCK using notepad


Hello friends, in this post I am going to give you a trick how to lock a folder of your desired password and hide it.

All you need is just copy and paste the following code in the notepad and save it as anything.bat like lock.bat or you can give it any name.



cls
@ECHO OFF
title www.mypcutility.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== mypcutility goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

And save it in any place you want. The default password for this is mypcutility. Now find the word and change it to anything to you desire.

Now Double-click on the bat file, this now will create a folder named MyFolder and copy the files into the folder.

Now Double-click on the bat file, this is now ask you whether you want to lock the file. To lock press y and hit enter. If not n. If given y, then it will lock and hide the folder.

And if you want to open folder, then double-click the bat file and it will ask you to enter the password. Now enter the password and that will show the folder. Now get access the files in the folder.

That's all, hope its beneficial.

And if you dont want user to modify your password or view it, then just convert the batch file to exe using  .bat to .exe converter tool

Share this

Related Posts

Previous
Next Post »