lock

Hi Guys , today we are going to teach how to lock a folder with password but without using any software.

Paste the code given below in notepad and ‘Save’ it as batch file (with extension ‘.bat’).
Any name will do.
Then you see a batch file. Double click on this batch file to create a folder locker.
New folder named ‘Locker’ would be formed at the same location.
Now bring all the files you want to hide in the ‘Locker’ folder. Double click on the batch file to lock
the folder namely ‘Locker’.
If you want to unlock your files,double click the batch file again and you would be prompted for
password.
Enter the password and enjoy access to the folder.

lock

Here is the code to lock a folder :

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

32 COMMENTS

  1. Your article is good but it has major issue that’s forget password and how can I retrieve my password? Better way you should use encryption software. You can try Folder Lock, newsoftwares.net/folderlock/. They can encrypt your file in one click and they can recover your password.

  2. Hi there! I could have sworn I’ve been to this website before but after reading
    through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!

  3. Thank you for another informative blog. Where else could I get that kind of information written in such a perfect way? I’ve a project that I am just now working on, and I’ve been on the look out for such info.

  4. “Hey there! I’m at work surfing around your blog from my new iphone 4! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the superb work!”

  5. Hmm it looks like your website ate my first comment (it was super long) so I guess I’ll
    just sum it up what I had written and say,
    I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to
    the whole thing. Do you have any suggestions for beginner blog writers?
    I’d definitely appreciate it.

LEAVE A REPLY

Please enter your comment!
Please enter your name here