Menu
show-notice
hide-notice

How to Lock Folder Without Any Software

on 3 November 2011

folder lock
There are lot of ways to lock folders on computer. But in this article we going to showing you, how to lock folder without any software. it's very easy to protect your valuable folders and you can enhance your folder secure. In the earlier we mentioned, how to protect USB drive, that method is using USB Secure software. But in this tutorial no need to use any software. Just adding batch code in notepad.

How to Lock Folder using notepad

1. Open Notepad file.
2. Copy the below code and Paste it in notepad.

cls
:End
@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%==123456789 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
In the above batch code we added password is 123456789, and you can change that password.
3. Now save the notepad file as yourname.bat , (see below) 
4. Now a batch file will created in where you saved location.
5. Open that batch file, at the same time you will see Locker folder, 
6. Now store your personal files like pictures, videos, documents, etc... 
7. Once again open batch file to lock the stored file in folder. Now press Y and press Enter.

8. Now your folder will be invisible and protected. but batch file be there.
When you want to unlock the folder, then again open batch file and enter your password   
Video Tutorial:

SHARE

34 comments:

  1. Rhaul jadhavNovember 04, 2011

    very nice trick..
    how can i rename "Locker" folder name

    ReplyDelete
  2. just right click and do the needed change.

    ReplyDelete
  3. Not working for me .. window 7!

    ReplyDelete
    Replies
    1. Buddy, It's working perfectly in windows7.
      check the above tutorial properly

      Delete
  4. I DID THAT , BUT I LOCKED IT THEN I FORGET MY PASSWORD HOW I REOPEN IT , OR CHANGE THE PASSWORD?

    ReplyDelete
    Replies
    1. just use Ubuntu, boot a live cd access the windows folder and delete the .bat file :)

      Delete
    2. It is Possible edit that file and change your password

      Delete
    3. It is possible in windows 7, just do right click on the locker.bat and click edit, Now a notepad will appear , so change password as you wish ( mentions in step 2)

      Delete
  5. it is deleted by anyone ...

    ReplyDelete
  6. There is a bug in this coding....The folder when searched as Locker, we cannot find it,but when we search the name of any subfolder, we can get into the locker folder with ease... can you tell me how to apply the hidden and read only attribute to the sub files and folders using the batch file?

    ReplyDelete
  7. AnonymousJuly 05, 2012

    Fantastic, GREAT JOB MAN. THANKS

    ReplyDelete
  8. if u untik the "Hide protected operating system files(Recommended)" it will show u esyly...

    ReplyDelete
  9. works well for me, thank you very much.

    ReplyDelete
  10. A fascinating discussion is definitely worth comment.
    I do believe that you ought to publish more about this subject, it may not be a taboo subject but usually people don't discuss these topics. To the next! Many thanks!! payday loans
    Feel free to surf my site - instant loans

    ReplyDelete
  11. Well done, it is great achievement for you that give me free tool for locking files.

    ReplyDelete
  12. First I copied the same thing from another site, then locked my folder (WITH ALL MY FILES) Then when I entered my password, I cant seem to read it cause it was gone in a blink, then it didnt show the "Private" folder(Its the name of the folder where I put all files) Then went to this site for help. NOOOOOOO ALL MY FILES ARE DERRR!!!

    ReplyDelete
  13. its nice man but the password we type its getting displayed in the screen....... try to rectify as soon as possible.........

    ReplyDelete
  14. My folder somehow disappeared and now all my files are gone!help please!

    ReplyDelete
  15. Thanks To You..

    Its a brilliant effort :)

    ReplyDelete
  16. Hey Really Nice Share Keep it Up Please Can You Tell me Where You Get Your Blog Template

    ReplyDelete
    Replies
    1. Thnaks Buddy...
      Actually this template made by our Designer

      Delete
  17. any way this is not useful it is showing password and if searched file name it is showing its a waste no use

    ReplyDelete
  18. The information reg. how to lcok folder without any software is fine.
    and it's works out

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. i have window 8 64 bit ....not working....

    ReplyDelete
  21. wow to good your article is to good and very helpful regarding save your important documents file. this script is working properly in Window 8 64 bit. i have installed win8 64 bit and tried this script. this script was work proper done....

    ReplyDelete

Important -Comments with Links will be deleted immediately upon our review and If you are asking a question click the 'Subscribe By Mail' link below the comment form to be notified of replies.