April 5, 2009

TEXT SIZE minus plus

Lock Folders Using Notepad

You Might Be Interested In Our Popular Article
  • Improve Link Popularity And Increase Alexa Rank In No Time
  • lockerHello.

    Have you ever wondered if it is possible to Lock Folder using Notepad?

    Well yes it is possible to Lock Folder Without Any Software. This method works fine in Xp/Vista and hopefully upper versions of windows.

    Please don’t use this method if you are unsure what you are doing, I am not responsible for any damage caused by use of this, though it won’t occur if you follow my steps correctly.

    Here we start:
    Open Notepad from your Start -> All Programs -> Accessories -> Notepad
    notepad

    01. Copy and Paste the below code in Notepad and Save it as FolderLock.bat

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

    folder locker
    bat file

    02. Now Double Click that new Batch file named FolderLock and it will make a new folder named Locker in the same location:
    bat file
    bat file

    Now put the Data Inside the folder Locker and again Double Click the Batch file to Lock it, this will give you a prompt, just Type y and press Enter:
    bat file

    To Unlock the Folder just double click the Batch file again and type y and press Enter.

    Now keep the Batch File named FolderLock.bat in a different place like your USB Pen Drive so that only you can access the Folder you have locked.

    Hope this helps. If you have any question or doubt, please leave a comment and I will get to you as soon as possible and will help you to best possible way.senyum



    Print

    About the Author

    When I was born I was so shocked I didn't speak for a year and half...... My brain has 2 parts, Right and Left, The Right one has nothing left in it and the Left one has nothing right in it...... Who says Nothing is Impossible?? I've been doing nothing for years......

    21 Responses to “Lock Folders Using Notepad”

    Author comments are in a darker gray color for you to easily identify the posts author in the comments

    1. WELCOME TO HACK AND CRACK AND DOWNLOADS says:

      cool…tutirial..lemme try this

    2. Bariski says:

      Hope you enjoy thus simple but effective tutorial :)

    3. Web hosting reviews says:

      Hi, I just now created a folder lock using your coding, at present it is working fine but if in the future same file is corrupted than how can I access the it. Is there any recovery system.Thanks for sharing.

    4. Bariski says:

      See mate, just by keeping the files in that folder will never make them corrupt until you have been attacked by viruses or hard drive corruption (bad sectors). Well in that case you can recover data by using data recovery sofwares.

      Better use a good antivirus with combination of spyware to avoid them harming your system.

      Hope this helps.

    5. Blogger Styles says:

      Very interesting technique, I never thought Notepad can do this great task, you rocks!

    6. Bariski says:

      You are welcome mate. Thanks for the appreciation!

    7. Free T Shirts says:

      Very interesting solution to locking files. I believe Windows has a built protection feature that encrypts folders for the current user also.

    8. Bariski says:

      Yes but encryption is something else, I will discuss that solution too in coming times. :)

    9. linkuri says:

      Ok, cool method, but i want to change the password from y to something else. How can i do that?

    10. Anonymous says:

      Hey I dont know if you or others tried this, renaming the folder removes the protection. Thats too simple to get into the folder.

    11. Bariski says:

      @linkuri sorry to say but this was all taught in my class lol But will try it out when I will get free with some of my major project work :)

      @Anonymous, dude can you tell me how to rename a folder when it locked? :-/

    12. linkuri says:

      this script add the code {21EC2020-3AEA-1069-A2DD-08002B30309D} at the end of the folder name. U can rename the folder using a software like “unlocker” (http://ccollomb.free.fr/unlocker/) ;))

    13. Bariski says:

      Well it is not visible to everyone around, especially when it is hidden. So there is no point that others can unlock it. Moreover I have stated this method here so that you can hide files from your friends or family member lol like a important file or files. :|

    14. Anonymous says:

      @linkuri pass is at this line:

      “if NOT %pass%==type your password here goto FAIL”

      So u need to change “type your password here” with your password like:

      “if NOT %pass%==lamepass goto FAIL”

      So now every time you want to change the pass open the FolderLock.bat file in any text editor ‘n’ just change this line or rather the sting after “if NOT %pass%==”

    15. linkuri says:

      Thank you Anonymous, now it’s perfect :)
      Bariski, thank you to, but i have to asume that friends or family members are inteligent people :)
      I just saw that the folder it’s invisibile not hidden
      so they can not rename it

    16. Anonymous says:

      amazing…
      :-t

    17. Anonymous says:

      After locked, view hidden file can see and folder and double click it can open the folder. So what is the used?

    18. Anonymous says:

      how do i unlock the file after i forgot my paswword, grrrrrr…

    19. Hosting-ASAP "Web Hosting" says:

      Outstanding tutorial *clap*

    20. Panca says:

      So kind of you, nice trik…
      visit me http://pancallok.blogspot.com

    21. Itomo says:

      Cool, great tip friend !! I'm searching for a software that can lock my folders and you gave me a great tip. Thanks!!

    Leave a Reply