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.

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.
Published by February 5th, 2007 in Howtos.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




February 5th, 2007 at 4:54 pm
Hi, a bit off topic. but i would like to know what plugin do you use for the “Most Viewed” on your sitebar?
thanks.
February 6th, 2007 at 1:33 am
I just use a small (free) program called Free Hide Folder from cleanersoft. Much simpler.
February 6th, 2007 at 3:32 am
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?
February 6th, 2007 at 3:57 am
Loquacious I don’t believe the point of this is to be secure, just simple.
February 6th, 2007 at 10:19 am
AhBoon you can find a description and a download link for the plugin here.
February 6th, 2007 at 10:29 am
Like Jared said.. The simplicity was the idea, not the security
February 7th, 2007 at 12:03 am
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.
February 13th, 2007 at 6:31 pm
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
February 21st, 2007 at 11:39 am
Very interesting, but too complex..
March 3rd, 2007 at 3:27 am
the process is one way. you can lock it but not re-open. can you check your script again?
July 17th, 2007 at 9:23 pm
Works, but you can still delete the folder and it takes you to the control panel.
August 16th, 2007 at 2:29 pm
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
August 25th, 2007 at 1:47 pm
[…] How to Lock a Folder Using Notepad […]
January 10th, 2008 at 7:15 pm
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.
January 23rd, 2008 at 6:53 pm
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………………..
February 21st, 2008 at 12:28 pm
but what to do if we want to open the file at another location.for e.g.open it in recycle bin
May 5th, 2008 at 2:00 pm
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.
July 19th, 2008 at 6:38 pm
very interesting…….not the method i mean. i was able to lock every folder except “pics” folder….any idea why?
August 23rd, 2008 at 2:11 am
thanks for this!! i needed to lock my folder bec someone kept deleting it! thanks! may i put this information in my multiply acct?
August 28th, 2008 at 1:10 pm
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.
October 29th, 2008 at 5:05 pm
please tell some one, how can I download the software
November 26th, 2008 at 8:02 pm
Well, this is not particularly secure, but once edited a bit and hidden, this can become a potentially powerful securing method
December 1st, 2008 at 12:11 pm
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
December 1st, 2008 at 12:32 pm
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.
December 4th, 2008 at 1:06 am
ranjit, cucirca doesn’t reply any more looks like