How to Lock a Folder Using Notepad



There are plenty of software which lock your folders, some are free, other costs a lot of money. Why you’ll waste time and money when you could do it with your notepad.

* Consider you want to lock a folder named PICS in your D:\, whose path is D:\PICS

* Now open the Notepad and type the following

ren pics pics.{21EC2020-3AEA-1069-A2DD-08002B30309D}

* Where pics is your folder name. Save the text file as loc.bat in the same drive.
* Open another new notepad text file and type the following

ren pics.{21EC2020-3AEA-1069-A2DD-08002B30309D} pics

* Save the text file as key.bat in the same drive.

Folder Lock notepad

Usage:

* To lock the pics folder, simply click the loc.bat and it will transform into control panel icon which is inaccessible.
* To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible.

That’s all.


Missed an episode? Download it now! Click here.


AddThis Social Bookmark Button AddThis Feed Button

If you enjoyed this post Subscribe to the Free Newsletter

Additional Reading:
How to disable Windows logging
Generate a Random Post
How to add Sitemap Autodiscovery in Robots.txt



25 Responses to “How to Lock a Folder Using Notepad”

  • #1 AhBoon Says:

    Hi, a bit off topic. but i would like to know what plugin do you use for the “Most Viewed” on your sitebar?

    thanks.

  • #2 Jack Alexander Says:

    I just use a small (free) program called Free Hide Folder from cleanersoft. Much simpler.

  • #3 loquacious Says:

    What is that GID/UID you’re using? Also, how is this in any way secure?

    Further, how am I prevented from simply noting the path and using the legacy commandline program “type” to list the contents of the BAT file?

    Or even easier, simply dragging the BAT file to an open notepad program?

  • #4 Jared Says:

    Loquacious I don’t believe the point of this is to be secure, just simple.

  • #5 Cucirca Says:

    AhBoon you can find a description and a download link for the plugin here.

  • #6 Cucirca Says:

    Like Jared said.. The simplicity was the idea, not the security :)

  • #7 Mr Black Says:

    This is only a very, very simple way of doing it, but if you want to hide a directory filled with utilities and other goodies on the computer of a neophyte, doing this and hiding it will keep it fairly safe, until they evolve.

  • #8 Gary Says:

    This is not locking a folder it is renaming it. This article is misleading!!!!

    This is not a security measure, just an idea of someone that does not understand security and thinks that just renaming a folder secures it.

    You should consider doing some research into security before writing articles on locking things. Perhaps you shoould rename this post how to rename a folder in a really complicated way.

    Regards
    Gary

  • #9 Nikon Says:

    Very interesting, but too complex..

  • #10 hotta shuji Says:

    the process is one way. you can lock it but not re-open. can you check your script again?

  • #11 Alijah Says:

    Works, but you can still delete the folder and it takes you to the control panel.

  • #12 Rajesh Says:

    Hi Friends

    I dont think this as security, the folder can be deleted once if someone mislead and delete the file it cannot be replaced

  • #13 Cool Articles on Cucirca.com | Lifehacker Says:

    […] How to Lock a Folder Using Notepad […]

  • #14 davboz Says:

    For hotta shuji, and anyone,…….
    I thought so too.Couldn’t figure why I couldn’t return my file to the way it was.Then,in my “key.bat” text, I noticed I left out a “space” after the end bracket.There is one space. After I entered the space, closed “key.bat” and clicked it, my file returned to normal. Whether or not this is worth using is another Q. Maybe yes? Maybe No.

  • #15 sahasra Says:

    Hi frndzz, actually i had created password for the folder as above procedure, but my frnd formatted the system by providing a back up for dat loc.bat , but now after formatting im not getting any file which was kept in this folder, so wt 2 do now, like i cant get my files………………..

  • #16 jinal Says:

    but what to do if we want to open the file at another location.for e.g.open it in recycle bin

  • #17 Anay Says:

    hi,
    pls.help me,how i can unblock my .bat file,i can forgot my password to intered in notepad,so please tell me how i can got it?plz tell me as erlier as possible.

  • #18 Vezance Says:

    very interesting…….not the method i mean. i was able to lock every folder except “pics” folder….any idea why?

  • #19 danielleb3ar Says:

    thanks for this!! i needed to lock my folder bec someone kept deleting it! thanks! may i put this information in my multiply acct?

  • #20 Quextion Says:

    Hey, this does work and the post should be called “how to Lock a folder” because you do, you render a file inaccessible to most means of search and file browsing. Not only are the files hidden but they ar put in a place of non-activity so that they can’t be used until you use a key.bat file. Lock: An appliance for fastening a door,(lock.bat) lid, etc., consisting of a bolt (or system of bolts) with mechanism by which it can be propelled and withdrawn by means of a key(key.bat) or similar instrument.

  • #21 monu Says:

    please tell some one, how can I download the software

  • #22 Anonymous Says:

    Well, this is not particularly secure, but once edited a bit and hidden, this can become a potentially powerful securing method

  • #23 ranjith Says:

    How to Lock a Folder Using Notepad:

    Nice idea that folder was converted as like control panel. After that folder act as like control panel.

    But I am able to view that files through internet explorer. Kindly tell me if you have any other way.

    I am waiting for your reply.

    Ranjith J

  • #24 ranjith J Says:

    Nice idea that folder was converted as like control panel. After that folder act as like control panel.

    But I am able to view that files through internet explorer. “When I convert that folder as zip”
    Kindly tell me if you have any other way.

    I am waiting for your reply.

  • #25 askmuslims volunteer Says:

    ranjit, cucirca doesn’t reply any more looks like :(

Leave a Reply






tvshowsaddict

Firefox 3