How to create a Password Protected Folder in Windows 7

This tutorial will guide you through the steps required to create a locked folder in Windows 7 – without installing any additional 3rd party software.

9/27/15 Update: although the screenshots will be different, the method outlined in this tutorial to create a password protected folder does work in Windows 8.

While the steps below will guide you in creating a hidden and password protected folder, this method is not 100% secure. It will deter the average computer user enough, but an advanced user will be able to access the contents of this folder. If you want to create a truly secure and encrypted place to store files and folders that absolutely nobody will ever be able to access, see the tutorial How to Securely Store Files in Windows (which includes installing software, but it’s completely free).

  1. Create a new folder and name it whatever you would like.
  2. Open the folder, right-click on a blank area in it, then select New -> Text Document from the pop-up menu.
  3. Open the text file you just created by double-clicking it and copy/paste in the following text:

    title Folder Private
    if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    if NOT EXIST Private goto MDLOCKER
    echo Are you sure you 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
    ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    echo Folder locked
    goto End
    echo Enter password to unlock folder
    set/p "pass=>"
    if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password
    goto end
    md Private
    echo Private created successfully
    goto End

  4. In the above code, replace the key PASSWORD_GOES_HERE with the password you want to use to unlock the folder. For example if you want the password to be 123456, the line should look like:

    if NOT %pass%== 123456 goto FAIL

  5. Save your new file in the .bat format with the complete file name being locker.bat. To do this, make sure to change the Save as type: to All Files (*.*).

  6. click to enlarge

  7. In the folder you created back in Step #1, double click the locker.bat file and there will now be a new folder named Private where you can put anything you want.
  8. Upon exiting, double click the locker.bat file again. It will prompt you to answer whether you want to lock your folder or not. Press Y and the private folder will disappear.

  9. click to enlarge

  10. In order to retrieve the Private folder, all you have to do is double click the locker.bat file and enter the password which you set in Step #4 and the folder will appear again for you to access.

  11. click to enlarge

  12. That’s it!

Again, this method is not truly secure. How to Securely Store Files in Windows will take you through the steps to create a really secure folder (using free software).

  • Mike Sanders

    The first time I ran it it created the folder, but after hiding it it would not bring it back. It gives the message “goto unexpected at this time”

    It also says Quote is not recognized as an internal or external command

  • Ken

    I did this and when i try to open it says “goto was unexpected at this time”. how do i access the folder?

  • Bill

    Couldn’t you simply click “edit” on the batch file and easily read the password to unlock the folder? Seems pretty ineffective.

  • @Bill – yes. It’s meant as just a quick way to hide/secure a folder. As I mentioned, it’s not meant to keep any kind of very advanced user from viewing the folder. Opening the batch file in a text editor would reveal the password very quickly :)

  • @Ken and Mike –

    I’ll check to see if some of the ascii did not render properly in the code displayed on this page (perhaps the copy/paste caused the problem).

  • Splist

    I recived “goto unexpected at this time”
    when trying to unlock the folder

    looked at the Code and the line:
    set/p “pass=>”

    has no ASCII quotes in it from the copy and paste
    remove and re added them inside of notepad and everything works as it should.

  • Fabian

    Hi Splist,

    Tried removing and re-adding the “quotes” to no avail.
    Any other suggestions?

  • Pingback: Create A Password-Protected Folder In Windows 7 Sans Software | Lifehacker Australia()

  • none1

    Fabian, what Splist said worked for me:
    “pass=>” became “pass=>”

  • Splist – you’re right – there was a formatting issue in that line, which I’ve now fixed. Thanks!!!

    Fabian – I also fixed the rest of the possible ascii issues in that line, try the copy/paste method again. I just tested it in Windows 7 again with a copy/paste and it worked for me (using Notepad to create the .bat file).

  • none1

    So that didn’t work. Copy the quotation mark from here:
    Make sure it isn’t the beginning/ending quotation marks.

  • none1

    Sorry Ross, didn’t see your update. You’re onto it, you can delete my comments :)

  • Ken

    Thanks everyone, got it working now

  • raku

    hey does it work for vista 32 bit coz i tried but tried to un lock the folder thru locker.bat it creates O named filed with O bytes and nothing happens…

  • Dizzle

    Hopefully users of Windows 7 also have the preview pane turned off…

  • brian

    this is great ive been trying to figure a way liek this for very long now and i used the transparent icon tut on lifehacker to make the icon of the folder private is in and put it on my desktop so it looks like nothing is there aswell!

  • Fabian

    Thanks guys!

    It worked like a charm now!

  • Dean Rabbetts

    This is great, for the people who said this is not secure go to and download the batch file compiler, then no one can edit the script without knowing the password you used to compile the batch script.

  • Christobal

    I tried this on my vista 64 bit and it worked perfectly! Also if you don’t want someone to open the batch file and find out the password just move the batch file into the password secured file afterward.

  • Steve

    Perhaps I overlooked this, but I presume you need to have Windows setup not to allow you to see system files.

  • fallsoff

    Office 2010 trial will not let me save the .bat as . Will try .doc or something; but is there a work around??

  • Joel

    FYI: It works also with XP ;-)

  • RameezK

    Use Notepad or Notepad++ or any Text Editor.

  • sourav

    worked like magic…And most of all it worked on Windows XP too….everyone should try….thnks for sharing…. :)

  • Narendra

    it is not work..some error is coming that the system cannot open the file MDLOCKER..
    so wat can i do….. is there any trick for that same……

  • Shrex

    Anyone may simply delete your locker.bat file, create a new one with a new password and access your data… This is not very safe to me :)

  • Pingback: Windows7truuks « Windows 7 naar uw smaak()

  • Daniel

    I (foolishly) deleted the folder to start over. Now, it doesn’t work and I need to uninstall and start over. How do I uninstall??

  • fallsoff

    Oops, sorry my post was missent earlier. I meant to say:
    ‘Office 2010 will not allow saving the .bat as ‘all files’. The option does not appear. I saved as .doc and of course failed to achieve anything. Any suggestions? I am in W7 Enterprise.’

  • Awesome tutorial. Thanks man. It helps a lot to protect some confidential documents.

  • Natalia

    Is it possible to do this on Windows XP? If so could you please make a tutorial on it? Thank you.

  • Excellent tut, Thank you.

  • Pingback: Windows 7: Proteger carpeta con contraseña()

  • Pingback: Membuat Folder Rahasia di Windows 7 | KomputerBLOG.Com()

  • Pingback: Membuat Folder Rahasia di Windows 7 « JONO NEUTRON()

  • Pingback: iWant Blog » How To Create A Password Protected Folder In Windows 7()

  • Pingback: Password-Protect a Folder in Windows 7 Without Downloading Anything | Computer Booster()

  • Pingback: Microsoft Links « Frackmente()

  • Dara

    This is excellent! Thankyou so much!
    I’m used to having a protected folder cause my old laptop had a program called My Safe that was locked by finger scanning… but my new computer doesn’t so this will have to do lol.

  • KING

    thx very mush man
    it works so good
    i love you

  • Daniel

    Can I move this bat file to where ever I want now? Can’t someone just rightclick+edit the bat file using notepad to see the password if it’s sitting around?

  • Daniel

    Also, if the .bat is deleted when the folder is “hidden” where does it actually go, and will I be able to access it should the .bat be deleted? How do you remove the password protection if one decides he has no need for it anymore? Just delete it?

  • CodeBreaker

    Yeah.. here’s where your file hiding.
    C:\Users\DUDE\Desktop\Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

  • Jim

    Thank you SO MUCH! This is extremely useful, everybody else just told me to encrypt it or something but this is exactly what I wanted! T’anks!


    it’s so great info, it’s so useful. thanks you so much

  • Pingback: Membuat Folder Rahasia Dengan Password di Windows 7 | Portal Informasi dan Download Gratis!()

  • VK

    Ross thanks

  • Crit

    Here’s a nice little tip I tested. Probably won’t make it too more secure but it will throw some people off. Change the found to wingdings and they can’t read it. So your password can’t be seen.

  • Z

    Guise the answer on the most bottom:

    2 thumbs up for that

  • Z

    Okay nevermind, you could still access the folder by typing the folder name in the folder path

  • Z

    What if the folder you want to make private is entitled something like “ZH Pics”? How do you deal with space?


    Sir, Hat’s of………………………………..

  • Vishal

    Thank you very much… This is exactly what I wanted, just to hide few folders from my pals.
    After hiding, I just compressed the locker batch file with a password and deleted the original batch file.

  • praveen

    thanx for helping me about batch file coding


    Its realy sooooooooooooo usefullllllllllllll….
    I like this too much..

  • Pingback: How to create a Password Protected Folder in Windows 7 – Simple Help « Aero Digital Life()

  • KJ

    I did all this and it worked. BUT…. when i search the names of the images, theyre easily accessed… wth?

  • Pingback: Create a Simple Password Protected Folder in Windows 7 Sans Software « kh4it()

  • annegresloon

    Hey when you click once the locker icon the command including your password shows in the details (preview) window.. is there a way to hide it or else it’s not protected at all hehe!! :)

  • Pingback: vista folder ???? - PCMech Forums()

  • balaji

    simplest locker ever… I love it

  • aman

    this is cool!
    first time i made a protected folder.

  • Mr. Awesome

    Is there a way to put the bat file in on spot, say music and have the folder in another spot say pictures for example? I would really like to hide the bat file, and have the folder appear somewhere else.

  • Madison

    Thank you very much ! It worked very nicely :)

  • Shalmi

    BTW, when u look with WinRAR in to the folder where the “hidden” folder is located it will be shown and available.

  • Kushank


  • martin

    dude i love u. u rock man.

  • surya

    Thanks…. IT worked, really love to know such technologies in windows

  • Mona

    Thank you .. you helped a lot =D

  • sNicky

    Thanks a lot! you are great

  • Tomasm21

    1. What will be if you delete the locker?
    2. What will be if you rename that “private” folder into another name?
    3. How advanced users can bypass this method and view the contents of the folder?
    4. I have 2 OS on my PC – Windows 7 and Windows XP. If someone would restart PC to Windows XP, will they eventually see the folder? Or will there still be the locker and the system will work?
    5. What if I have this folder in external HDD? And if this HDD will be carried to another computer and connected there. Will the locker will work? Or the contents will be simply accessible?

  • CrackerJack

    Great work!

    I guess to enhance the “SECURITY” more, we just need to put the “locker.bat” in a .rar file and encrypt it with a password too. Damn Hassle, but i guess it somehow helps? LOL

  • Johny

    ca’t someone just delete the locker file and gain access to the folder?
    im a n00b

  • Manjunatha

    this method of folder protection has worked nicely. thank u, but how to change the password in case of requirement, because when i tried to open the content of the notepad file to change the password, the content itself was not appeared. plz help me any body..

  • Tomasm21

    This method is surely for noobs. Any human that has a little bit of knowledge, is smart, can bypass this. So it is not safe. But I’m glad to know it. However the whole system must be upgraded in order not to bypass this so fast.
    Best way is to zip your folder and set a password.

  • JK

    Well, it is working as expected.

  • David

    One problem I saw with this.

    If you have the sidebar preview active, when you single click on the locker file, it shows the contents (i.e. the code) that has the password written into it. If one were to read the code, they could easily find out your password.

    Any way to fix this?

  • Luca

    L’unica cosa che non mi piace realmente di questo bel programma è che quando si inserisce la password, la stessa è VISIBILEa chi ci stà intorno; non è possibile criptarla con ****** ?

    Potete dirmi come si può aggiungere questa variazione al programma ?


  • Neil

    Working nicely right now! Thanks

  • kriza

    is very good nice.

  • ztlop

    its so greattttttttttttttttttttttttttttttttttttt,,,,,, cool…. u rockman

  • Kelli

    This works! I thought it wouldn’t at first, but it does. Thanks so much!

  • guest

    Thanks i love u

  • Pingback: Membuat Folder Rahasia di Windows 7 « Berita Exist()

  • Love this!

    Best thing since sliced bread! XD

  • Sandrine

    nice… ppl at my home aren’t computer geeks so this should work just fine. thanks for posting!

  • Ayush


  • nguyen

    just right click the locker.bat and select edit anybody can see your password

  • Share

    thanks alot for this share :)



  • bala

    thanks for your info. it works.

  • stab

    Very nicely done. and thank you for the code. i will try to modify it to include options like changing password

  • irfanuddin

    a lot………………………..
    for sharing..

  • JT

    This is nice, but how will you be able to hide the actual locker.bat file from being seen then? Cause once you right-click then edit the bat file, you can just easily see what’s inside the file itself…

  • RAAT

    OMG ! It works………..!

    It’s reaLLy very awesome……….I’m haPPy nw..

    thanks a lot……………..

  • Mekbeb

    I am glad to know it . But simply right click on the locker file and click open , you will see the code there which has the password. Not safe method.

  • Bilal

    i m not able to retrieve my private folder.. i m entering my password correctly.. but its not retrieving.. what should i do now… tell me plzzz…!!

  • subramanyam PSRK

    Its simply superb. however if anybody right click and edit the locker.bat file they can easily view the password. I think its not completely SAFE…

  • Rorie

    This is all great and very clever, but the files/folders are still accessible through windows search. So what now?

  • J.J.Shevy

    Thanks a lot :-)

  • Orion

    is it working ? It seems like working but it is simply hiding…………when search hidden folder your private files will be open or if you go to recent documents it will give direct access to your private folders…………

    If any body had any solution plz inform…………….

  • Ludo

    Thx for helping me

  • chetna bhalla helped meee…!!

  • Fresco Cherie

    Thanks Alot…I Love The One Who discovered This……It helped me alot..Thankyou:):):)

  • Padmakumar

    Thanks…….. great work …………

  • Sabrina

    excuse me, but once you have opened the file, you can’t lock it back again… can anyone tell me how to do that please.

  • dude, u r grt

  • kunal singh

    Thanks a lot

  • IBGman

    That’s cool and all, but it does not work when you have the option “show hidden files” on. But this is a rather clever trick, good sir.

  • woot! now i can hide all that CP i’ve been stashing

  • Raghu

    hello, such a simple program, thanks a lot.
    it helped me to save me few bucks.
    thanks for sharing my friend.

  • Pingback: Burhan Ahmed » Create a Password Protected Folder in Windows 7()

  • Nadun

    thanks lot thanks once again

  • Greg

    Props to ya!! Thanks

  • rachna

    I am having a problem..can anyone help? i made the folder where the password is written ut as i double lcik t ”main folder” i dont get any folder named”private”

  • rachna

    oh great!! done..

  • ferry

    very useful post Bro!!!!

  • Sapphy


  • Begi

    It has nothing to do with a password protected folder, its just hidding your folder and makes it look like a system folder.
    On folder options; selecting “show hidden file” and removing the check mark from “hide protected operating system files” it will be visible to all,
    better if you create this “hidden folder” to a specific path where nobody would see them deep in the system (if it is very important not to be detected from anyone)

  • nice dude simple n sily

  • Brittany

    it works!!!!thanks


    wow thanx mate



  • Lynn

    This worked great for me!!. The only problem I had at first was when saving the text doc I had no option to save ALL FILES, which I found was because I did this wordpad NOT notepad.. But once I did this in notepad It worked exactly as described.. For some reason which Im not sure why (wanna be nerd) when I right clicked to create the new textdoc mine opened it in word pad. But while rereading I seen it was in notepad, I tried again just slightly different path (not by much) all was well.. Thanks for the info!

  • Altaf Hussain

    its great. but how would u change the password.

  • prakash

    If anyone deletes the locker.bat file private folder will be accessable, isn’t it. How to protect in such cases

  • shana shepird

    thank u, thank u, thank u, it realy worked but i have a question does it work on other windows such as XP or others???

  • Kiki

    Hmm nice, but anyone can oped the locker.bat file in edit mode and see the password…

  • asad

    it really works great.


    Thank you man. It work.!!!

  • geokarlo

    It really works but its just going to hide. the folder… and no use for the password thing…
    hope you can make more security about the script…


  • deya

    Thanks bro for this article, also it’s a useful method….
    BUT the problem is anybody can go the “locker.bat” and open it as editing, then the password would be clear to see; so this method is not 100% secured.

    If any other method could be used, please provide us with it.
    Thanx again :)

  • Seikoops

    Works! Thank you my man :-)

  • Cool Peoson

    for the password problem, set the password to any number of these: *
    mine is this: ********* so anyone who edits it think its hidden, tho that is the actual password! ;)
    just an idea x

  • Satyam

    Thanks aloooot for telling. Was a useful trick for me.. Thanks..

  • hilmi

    hye..totally worked….thanks dude!!…;DDD

  • Fuat

    I cant see my documents anymore inside of the folder how can i make a recovery?
    Pls help!

  • Jerome

    thanks men.. perfect

  • Bshabazz

    Very useful batch file script. Can you change name of the folder from Private to another name, by editting the script & replacing Private with another name

  • rich

    how do i reverse this?? the folders i have added to private have now disappeared?! thanks

  • Bounty Man007

    nice work

  • Abhi

    ALWAYS! Always! always!
    It is awesome and It works :) :)
    But the problem is if u delete the file locker.bat
    It can be searched


    It isn’t really that secure. If you go to you start menu icon and use the search engine to find the folder you have set as private. You will be able to find the folder and let’s say if anybody know’s the files name, it can totally be viewed without having to enter any password’s. All that this does is hide’s the folder but not permanently locks it. So its a good thing if no one know’s the name of your file :P

  • hekri

    Yup! Smart guy is right, this is not secure at all.

  • Hi

    lovely :)

  • RANA

    Go to preview pan and click the locker.bat
    preview show your program including the password.

  • kuldeep

    superb !!!!!!!!!!!!!!!

  • meme

    Very good idea BUT if someone searches the file make in the private folder they can access it anyway from searching in the start button… just letting everyone know this isn’t a fool proof lock at all!!

  • Hamid Reza

    this is not good way because if we un check Hide pretected operating system file in folder option every body can see this file!



  • ganta s.nivas

    thanks for make me know

  • bijendra meena

    how to change password if i want to change it

  • sandy

    amazing………… words to describe………….Thank you somuch:-)

  • Suzan

    OMG soooo good !!! :D Thanx Mate

  • good man

    sadly not work the item that you but it in the protected folder simply wil be showing up in the search bar : ( just try

  • Stephen

    You’re a genius. Cheers mate!

  • Masud

    Thanks, thats very great and nice

  • Abhisek

    thaks a lot it realy work

  • gopi

    thanx…for this program.. which ‘ve been waiting for..
    but i dn’t wheter it is 100% safe. rnot…


    this is great now to try it at school

  • awesome

  • anna

    amazing! thanks for the tips

  • anuj

    will this code work for locking the drive also ?

  • WillemHarff

    The thing is, If you right click the “Locker.bat” and you choose edit,
    The password will show up in this text: if NOT %pass%== PASS_GOES_HERE goto FAIL.
    So thats a problem, the problem, everybody can figure that out. There should be a lock on that aswell. And does anybody know how to get a censor “******” when you type in the password? So when friends are looking they won’t be able to see the password. Please comment on this reply.

  • Pingback: How To Create A Password Protected Folder In Windows 7 | EM Logo()

  • gopal

    @deya, thanks deya, i didnt knew that the password can be accessed so really its not secure

  • Maulik C. Goswami

    can we hide password while typing it.

    like can we have ” **** ” instead of visible password

  • P.Satish

    can we hide password while typing it.

    like can we have ” **** ” instead of visible password

  • Sharon Satterwhite

    This method is not secure at all. I did a search (in Windows 7) for the files I put in the “Private” folder, with the lock ON, and they came up in the search pane.. I double clicked on the “locked” files and they opened right up. To make sure they were locked, I went to the folder I created, double clicked on the locker.bat folder, and the box popped up, asking for my password. Apparently, the search feature completely bypasses the password process. There must be a better way to lock a file. I have a password on an individual file, but that can be cracked, too, by anyone with a little advance expertise..

  • s singh

    thanx bro

  • mmtg96

    Just rename batch file to sth like “Windows Driver 146s987su” and no one will try to access it xD and put it in a folder called ” Windows Drivers for /&&#)%I/%” and SUCCESS !

  • Jake

    @SHARRON Yes, like mmtg96 said, name it some random combination of letters and numbers. No one will search for it. If you don’t want to do that, you may have to go with third party software. I don’t know much about it.

    Anyway, thanks for this tutorial! It’s great.

  • Sasanka

    bat files are editable,any body could easily crack it by opening it notepad and change the password,so think a better idea.

  • mukul

    great trick to hide the folders.. really wonderful thanx a lot

  • Name

    Just put the locker.bat folder somewhere weird, and also name it strange, and it will be very hard to search and find.

  • Bloop

    You put the files hidden so search can’t find them -.-

  • shayla

    wow!!! this has been really helpful…but we have to lock it every time we use it….makes it uncomfortable

  • Sarvesh

    Thanks man this was great!!!

  • UUUURGH!!!

    THis worked perfectly—except for one thing. You can still open the file. if you search it, like someone else mentioned, you can open it easily. however this is no biggie because no one know what the file is called. the real issue is that when i right click on the wordpad icon on the bottom bar of my screen, it shows all the documents ive worked on lately, and anyone can see the file and click on it. HELP!!

  • Rave

    i recommend truecrypt software.. It’s more secured and free.

  • Sabir Alam

    I am downloaded file loker from all the site and it dosen’t work.
    Finally i click on this site and i try its really work .
    Thank you………………………….

  • george

    thank uuuuuuuuuuuuuuuuuuuuuuuuu soooooooooooooooooooooooooooooo muchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

  • edinson

    no sale

  • Milind

    hey its amazing
    ???? when i am search jpg or any type of file then this private folder shows any items????????
    so thanks……………………………..

  • sandeep kumar mahto

    thanks bro,

  • rimzan khan

    thanks dear

  • navin

    if u want change the name of folder replace all private to urs folder name and save as bat file

  • Saran

    Coolllllll….. Its amazing……I was looking for this for a long time…….

  • Night Owl

    Works perfect for what I need — a way to deter the random morons who might go poking around if I leave my laptop unattended. In my case, they don’t know what they’re looking for and they’re not tech-savvy enough to realize what the locker.bat file might be. And if they were suspicious and opened it, they would get the password prompt and back away. The other commenters are right — this is not something you would want to use when you’re dealing with a person who 1) Knows what to look for, 2) Knows how to edit .bat files. Think of it as a deterrent, not a full-on security measure. Thanks for sharing!

  • Dariukas

    If you right click on locker.bat and press edit, you can see everything you printed in text file including your password, so it is not safe to use your password on this program that you are using somewhere else.

  • Dhiraj

    it was ossam.


  • kashif

    thankx man it worked

  • Mahesh Kumar

    Good , I like it .

  • Gourav…

    if,in folder option we tick show hidden files it shows file :( no locking s working



  • Abhijeet

    tHNX BUDDY made U my life easy…..

  • cwilllows

    and unless some one knows what they are looking for in the search engine they won’t find it , no one knows what files i have hidden or their names simply because i have never told them they exist, so unless someone knows what to look for the won’t find it .

  • anansi

    it works!!!

  • Anon

    Thanks!!! This is genius for my fap folder xD

  • arief

    i did the above…locked the folder…but in windows search panel when i enter the folder name it shows the private folder and contents automatically without password…check it

  • Willem

    Hello Guys, If you’ve been doing this and had succes, there is more! I’ve extended my “private folder” a little bit, I’m gonna post it, edit the “TITLE”, “PASSWORD”, “NAME.”
    Please give feedback!

    title Willem’s Business
    FOR /F “tokens=*” %%A IN (‘DATE/T’) DO FOR %%B IN (%%A) DO SET Today=%%B
    ECHO DATE: %Today%.
    FOR /F %%A IN (‘TIME/T’) DO SET Now=%%A
    ECHO TIME: %Now%.
    if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
    if NOT EXIST Private goto MDLOCKER
    echo Are you sure you 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
    ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    echo Folder locked
    goto End
    echo Enter your name. (Real name)
    set/p “name=>”
    if NOT ‘%name%’ == ‘Willem’ goto failz
    if NOT ‘%name%’ == ‘Willem’ goto failz
    if ‘%name%’ == ‘willem’ goto awesome
    if ‘%name%’ == ‘Willem’ goto awesome
    echo Access Denied.
    echo Access Granted.
    COLOR 7
    echo Now please enter password.
    set/p “pass=>”
    if NOT %pass%== superman goto FAIL
    attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password, You have 1 try left.
    echo Type in password correctly, or computer will proceed shutdown.
    set/p “pass=>”
    if NOT %pass%== superman goto FAIL
    shutdown -s -t 10 -c “Access Denied. Windows is shutting down.”

  • Sweety

    amazing code.. Keep it up

  • Abu

    This method is good for computer noobs.

    To find the password, all you have to do is right click the .bat file and open with notepad, then you can see the password.

    Truecrypt is the best free solution





  • sanwi

    good, it works , not 100% secured though. thumps up!!!

  • Z

    Thank you so much! So very helpful. <3

  • L.

    Thank you very much!! I could’nt believe I can do that too. I appreciate!

  • prashant

    but u also hav to tell how to remove password when we wish to remove

  • H. K. Koech

    This was absolutely fantastic……….. thanks so much for your assistance

  • Dan

    I deleted the text file and it worked fine still

  • Sonali

    Hey Buddy…
    It is gr8…but one bug is their….any one can see batch file & will get password easily

  • AshHilton

    I did this and now when i left click on the locker (.bat file) it will flicker on the screen and not allow me time to input anything. Or, it will open a new Private folder that has NOTHING in it and that is what i have unlocked. Helpppp!! Lots of irreplaceable pictures in this folder! and im not computer literate enough to find them!!

  • Daniel

    Hey, one idea on where to put the file so that the search bar wont bypass the locked aspect is to put it inside of the Appdata folder.

  • afzal

    Great what a way to secure a folder;… thanks

  • Susheel

    This method is not secure at all, any one can see batch file & will get password easily

  • kwstas

    is there a way to put and another password which when is typed the files are deleted???????????????

  • chet

    badass dude

  • anony023

    If I put a notepad text document in the private folder and have it passworded, what is the point if someone can just go to start and see the latest notepad text document and pull it up without a password?

  • anony023

    whats the point of making this private folder (I’ve done it) if the notepad text files can still be accessed without passwords as a document?

  • erfan


  • Rakesh Bora

    very useful

  • Rhys

    what would you have to change if you wanted to change the “private” folder in to another name.

  • Jaipal

    if some one deletes the locker file, then how to get back the files from the Privat folder of the locker file.

  • Daniel

    the only thing that is wierd to me, it dont matter if i type the right password or a false password the folder “private” comes up no matter what.

    lets say my password is: 123456
    & i type in 123 in the password it still opens the folder, or if i type hagasdg or anything i type opens the folder…

  • Kwstas

    i had the same problem Daniel… edit the file and after == type your password without leaving a space….==123456 and not == 123456…

  • Thanks and great work

  • gladson

    its good. but if we search file name of the file in private folder it will be found.and right clicking “open file location” opens that folder.. any solution for this?

  • SomeGuy00765

    Then…does this mean anyone could just open up the file if they really searched for the pass?
    Since you can edit the text document’s/locker’s information, if someone went to edit it they could find the pass out by looking through the text…right? If the pass can easily be changed like that then I’m screwed if my parents open these files. (Yes, they are skilled with computers and such)

    But I’ll just hope they don’t go snooping around on my computer. Thanks for the information though. At least my little sisters and bother wouldn’t be able to figure that out I don’t think.

  • Maho13

    Kwstas, actually it’s there has to be a space between both the “==” and the “goto”. I’ve tested it both with spaces and without. W/o spaces, I could type in anything and the folder would pop up. With spaces, if I typed in anything, nothing happened.

    But it’s still is easy for anyone to edit the file if they know at least the basics…good thing there are VERY few people I know that are actually computer smart or could at least think to click “edit” or even bother to try to search up how to open it.

  • kwstas

    Maho13 at first i put a space but whatever i typed the folder appeared and when i left a space after “==” worked fine…
    but at least in my family there is no person who will think to right click the whole family apart from my brother are not computer smart but even my brother when he will see the locker he won’t think that is an editable file…
    It would be great if you could set and another password with the ability to delete, encrypt or hide all of the files inside the private folder…so if somebody don’t believe that you have nothing inside the folder and force you to open it you can prove them that there isn’t anything inside..but i am not so computer smart and i don’t know if this is achievable…

  • Iel

    Thanks!… its Great.. work for me… XD

  • Marwan

    It’s a very good batch. Make sure that you get it running first, and then password protect it using winzip or any other zip utility, if you don’t want anyone else to use or edit it, here’s for: Right-click on the batch file and click on “Winzip”, scroll down and click on “Add to Zip file”. Check “Encrypt added files”, click on Add, enter a password in the pop-up window, repeat the password, Click on OK.
    This way, you’ll be the only one who will able to run or edit the batch file.

  • sakura

    when i lock the file the “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” file appers and i clicked it and all the things that i want to protect is… well… unprotected.. tell me what i did wrong.

  • Will

    Can anyone tell me what language was written in the text file?

  • Rita

    What happens if the locker file is deleted? Do I lose all my documents in the folder?

  • Marwan

    Best practice is to always keep a backup copy of the file. Always backup your data, folders and files…. Backup, Backup, Backup… Keep a copy of that files in different places..

  • Vinodh

    Worked great

  • what a superb idea man !!!!!!!
    it really works !!
    friends please follow this method

  • Ajit D

    Can we place this batch file somewhere else in other folder, to add little more security?

  • Marwan

    yes, you can. It was done this way for ease of use..
    Please read my previous comments for extra security.

  • Mahalakshmi

    Awesome idea. Superb for my secured official data!!!

  • MakanBoboi

    Bad… if right click at the lock.bat then click “EDIT” .. we cant know that password.. GG

  • MakanBoboi

    ok2… my bad… sorry .. that problem solved when zip n put a password..

  • akash

    oh that grt !!! thanx a lot ..

  • MittMitt

    Same here!

  • rasika

    it’s works for error password also

  • Samrat Thapa

    thak u so much it really. works!!!

  • Akshay Sahu

    Awesome man, great code, CHEERS :)

  • mamta

    its really good stuff.thank u

  • Jo


  • PJ

    i tried this and it’s great! anyway, i converted the bat file to exe so it cannot be edited! lol :D

  • Nasimnaji1

    i did it but the folder did not disappear completely just changing it’s name ,and i have access to it!

  • Den

    it works…thank you… :)

  • Rretiro

    BUULLSHHHIT, its just makes folder renamed and hidden, nothing usefull – at all,
    Hey people search for smth else!

  • Gabbardc3

    how did you do that

  • Julian

    How can you enter the password , which will appear like this ******. Thanks alot

  • Syed Faeq


  • Syed Faeq

    No Rita .. it wont .. the folder and the Locker.bat  will be in the recycle bin.. BUT if u delete the locker.bat from the recycle bin .. every thing in the folder will be lost !!.

    Syed .

  • Bob

    Thank you!

  • Grand Master

    Sorry it was great…but if a noob puts Doc view on and then clicks on the file he can see the password…so great if i wana keep a noob out, but hate to say it a 5 year old now days can figure out more shit about pc’s just cuz of how tech has advanced.. 

  • Snjha18

    thanks this 100% working

  • Maneesha mandahas

    thanx….it works…

  • Amangarg

    its realy cooooooooooooooooool

  • Abdullah YAQUBI

    This is the best thing that i ever liked. Thanks Friends

  • D Jar

    where does the folder go after activating the .bat file?

  • Bexr83

    how do i change the password

  • Zubair

    That’s cool but I got a little problem. I followed the steps, stored the data in this Private folder and now when I click locker.bat file, it just flashes i.e. I can’t see my data in this Private folder. Please help.

  • Guest

    sad. by enabling the option in the “folder options” that shows the file extensions, you can see the .bat extension in the locker.bat file. then you can change that extension to .txt and you can already see the password. =(

  • Dear Guest –

    This is absolutely true. With that said, it is mentioned up front at the beginning of this tutorial that this method for creating a password protected folder is not 100% sure, and is intended to hide files from the casual observer. You can use software like TrueCrypt to create a truly secure password protected folder, but that involves downloading, installing and setting up TrueCrypt. See: for more details (although that’s a fairly old tutorial and is probably out of date, it will give you an overview and very good idea of what’s involved in using TrueCrypt).


  • boy germs

    hello .. its not working in 64 bit os :(

  • Zaki

    By enabling ‘show hidden files’  i can open the private folder without any password, only the folder name changes from private to something else when hidden.

  • boy germs

    fix .. thank you very much

  • ran

    it works……

  • Sam83 Heidari

    the password already written in the locker.bat file. Everybody can open it and read the password, and then run the file. Is there any other way to protect our folders?

  • Simplyhem

    It just renames the folder to some operating system folder e.g. Control Panel… & it becomes invisible… if u will uncheck the option from the Tools -> Options -> View-> ‘Hide protected operating system files’ and also check the radio button – ‘Show Hidden Files’ then u will see the folder renamed like – ‘Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}’… numbers can be different… this is yr folder…

  • Glaxy2000

    its like nothing, script dose only hide the folder by password.
    1) Run folder options- 2) view tab 3)show hidden files, folders, and drivers, then ok
    folder will be visible, you can deleted without the password. please trying to do something else, thanks anyway  

  • Lynnnguyen1316

    I love who ever found this out….. AWESOME JOB!!

  • Monrichiii

    i did this but.. all those files i added to private folder are deleted now.. and even the password is not working :(

  • Adityathombare

    Thank you..!!

  • Monrichiii

    my password is not working and my filse are lost :(.. even Your trick is not working. :|

  • guestin

    showing hidden files folders and drivers doesnt make the Private folder visible what are you talkin about

  • Agbohills

    the files will just open  without prompting my password.
    what could be wrong? 

  • Tokaai

    thankzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz buddy


    i am so happy to have trick like this

  • jun the pogi

    ooooooowwww. it takes me weeks to browse my computer just to find a locker. now i got it. thanks much buddy.

  • jj

    How can you can this so you can use it on multiple folders without having everything under one roof?

  • Savzac

    Excellent! Thank you.

  • Stuartkala2011

    This might be all well and good, i was going to use this to safely hide personal customer files as i am a Data Protector but there is a flaw in the program.. If you right click the bat. file and click edit, it takes you to the script you created and reveals your password!! Not great

  • shiuma


  • saeed

    it’s a good idea to rename the locker file to other names like bin , rec ,res that the other advanced user may get cofused

  • lol



    how can i change the password?

  • Ben L

    I did this eventually deleted the locked folder… then later a subfolder that i had previously moved from the locked folder will not let me modify or delete its contents because it is still somehow locked. I “need permission from computer1:Username” how can i fix this?

  • yeah your right

  • ruan

    this are all piece of shit I try to search how to completely hide folder,, but this is shit,, if you try to go to search bar and type sex, porn, virgin things like that it still comes out even you put it in the private and you lock it,,,

  • tony

    sexo……. nice one.. its working

  • Bishwadeep

    fuck off this fucking thing dosent work, it only works if hidden files and folder is in show mode and every one knows how to show hidden files and folders asshole…….

  • Ok, so what if you did this and then encrypted the batch file. Seems like that should work.

  • milan kharal

    thank you so much

  • guest

    awesome, thank you!

  • prashsamania

    for this you could do one thing
    1st follow all d above instructions
    then hide your folder and remember the location of your folder
    lastly just move this “locker.bat” file in any folder you like

    if any one finds out “locker.bat” n click on it only a new “private” folder will appear
    but your original folder is safe in its location
    and to get your folder back all you have to do is move “locker.bat” in the actual folder where your original “private” folder is

  • prashsamania

    there is still one more problem though
    the files in the folder show up in search
    and if anyone knows the name or the type of any file then they can get access to the folder easily
    so can something be done about it??

  • prashsamania

    apart from others findind your password there is one more problem
    and that is that your files can be searched using the search option

    for that just encrypt your folder
    and deny all the permissions to users and system

  • @a1965698a72e7431a0feebe97728afbf:disqus (and all) – yes, this is the reason I stressed at the beginning of the tutorial that the method outlined is not secure from an advanced user. If you want to create a place to store your files that’s completely secure, see the guide How to Securely Store Files in Windows. Cheers!

  • Martand

    thank u very much its really working well…

  • sri

    Thank you… it’s very useful to protect personal files..

  • a person

    create a new ‘locker’

  • someone

    right-click, select edit, find your password, change it.
    or delete ‘locker’ after u put in the password



  • Motasem Zindaqy

    you right …
    after showing the hidding files and folders ,, file name will be
    Control Panel.[xxxxxxxxxxxxxxxxxxxxxxx]

    xxxxxxxxxxxxxxxxx = numbers and char .

  • Sandy

    Very Very Thank u Boss You Are Great

  • Pingback: How to create a Password Protected Folder in Windows 7 — Simple Help « Alucardv's Blog()

  • SEPH

    sooooooooooooooooooooooooooo cooooool!

  • estaa

    The best!!! ilove it frm today, no one is gonna access ma files.

  • saddam hussain

    Thanks thanks thanks a lot dear………….

  • avesh

    thanks buddy

  • bala

    when i made it to show hidden folders i can open the private folder

  • Srikar Settur

    or you can name it as something only you know and delete the file after locking. when you need to open the folder create a new lock file with the name you had given and any password of your choice. It still works .

  • Srikar Settur

    as long as you remember the folder name, password does not matter..

  • Steven

    there’s another flaw with this: if you search (via start menu) the name of a file that’s in your private folder, it shows up and you can click on it there and see it… it won’t ask for the password

  • Listenmate

    Yes it works…. BUT, Anyone can just Right Click Then click edit. Change The password
    or look at it. Then they can access it!

  • callmemaybe :)

    YES it really workss… surely it helps…..

  • Helper

    I went into the .bat and renamed the “Please enter password” to “Please Exit Now” so only you know to type in a password ;)


    no……..just create a new locker.bat having the same password as prev one,and it works as it was


    nahi,bhai………..pahle istremal kare phir wiswas kare….

  • ssj

    private folder goes of but instead a folder named control panel s coming thro which i can open those folders it doesnt asks me for password

  • Thanks

  • Shah Sahab

    Thanks :)

  • kallol

    apparently it is good and workable but what would be happened when any one delete the ‘bat’ file?

  • anmol

    excellent, works great. thanks for the help

  • charbel

    it is not a password protected folder cuz anyone can right click the “locker.bat” click edit and change the password

  • Maleeha

    Thanks It really works

  • iloveporn


  • Totoro

    very helpful! thank you. :)

  • Saved Forever

    This doesn’t lock anything. All it does is change the name of the folder and +h hides it.

  • Awesome! Thank you!

  • SRI


  • omar

    is it working if i share the folder??so that only person who know the password can open the folder from their pc…

  • thnq so much………
    really its very simple n strong funda…… n
    easy to use also

  • Mr. Awesome


  • kalia badapanda

    yaaaaaaaa …….this is really good. i m impress. thank u very much.

  • priyanka d b

    nothing happened ..the folder id not me plz.

  • Amrit


  • somnath

    Not safe….. I just done folder hidden
    If show hidden files option is on ….. it shows as hidden folder…. double clicking it opens the folder
    is there any other way

  • John Krater

    this is good…but i dont like it that much.

    1.cant change the name of the folder

    2. i dont want to hide it just add a password

    i just want to encrypt some movies and tv shows which are violent and has nudity in it so that none of my family members or small kids come in contact with it ..well for me this doesnt help ..sorry!!

  • mythil

    i just want to add password to some violent and offensice movies and tv shows so that my family and smalls kids dont get in contact with it..this is not so good though as i cant change the name of the folder i am shows “PRIVATE” i dont want it to show PRIVATE name i want it to show the name of the offensive material !

  • Bot_I{

    For those worried about how easy it is to view the password. Download a free .Bat to EXE converter. A good converter like “Advanced BAT to EXE Converter” will encrypt the data so even if the .exe is renamed to .txt the source info cannot be read.

  • Bot_I{

    To rename the folder open the .bat file in notepad (right click -> Edit). in notepad press Ctrl+H to bring up the replace feature. in Find What type “Private” without “” and in Replace with type your desired folder name. Hit replace all and save the .bat. it should now create the folder with the name you chose

  • Bot_I{

    the script sets the folder as a protected OS folder. The folder will remain hidden with “Show hidden files, folders” turned on. But it will be visible and accessible if “Hide protected operating system files” is unchecked.
    Unless your hiding something from a fairly advanced user and know they are looking for a hidden OS protected file just keep Hide protected Checked and it will do its job.

  • mukesh

    this is the good one but one problem is that write password can i saw , this is the not good

  • Confused

    I gone every step and just simply doesn’t work I belive there should be two places to enter password, but these coading has only one password place to type.

  • kwstas

    hi there…for those who say that you can right click it and edit they can put it in archive with a password….moreover they can hide all the files inside the private folder….

    but i want to know if there is a way to do it to an external hard disk…is there a system file that i can move to the disk an make it work? because it works only in the computer that i made it…anyone who can help..??

  • dhananjay


  • Cheema

    dis w really cool….



  • pankaj

    How can asterix (*) can be wriiten in prograaming so that while typping password in the DOS , it is not shown to the users but shown as ****** .

  • 123456

    bhai baad mein kisi bhi pasword se khul jata hai


    Thanks for this. :)

  • miko

    thx alot i appreciate your help been week looking for such thing

  • dude455

    if wrong password put yet it opens up helppppppp

  • Jon

    Or you can make the .bat file a “un-editable” object. Look at the properties of the file , under the security tab and check “Modify” as deny. This will make it un editable even for you unless you make yet another “higher” level admin or what not.

  • sad

    I did this and I put in a password then tried to use anything to sign on to the file. If the password was 1234. All I would have to do, to see the file that has been locked, is put 1 or 2 or 3 or 4. I wouldn’t have to put all the password in. Just a number that was in the password.

  • chi

    if you wants to go for the extra mile after you have hide and lock the folder you can just move the bat file away so only you know the actual location and also this will protect you from the issue mentioned below and that wasnt the only issue with this. if you know the exact location of the folder all you have to do is go there and create a new bat file with a desired password and you can unlock the folder thats the only reason i said you should lock it and then hide the locker file some where else so its a little bit more protected

  • chi

    if you move the bat file and some one click it wont do anything but create a new folder called private in that location your original stuff will stay hidden till you take another bat file where you wants to and open it. i had to hide my past papers in my laptop due to the campus policy of having pass papers is punishable by expulsion. even the it department couldn’t find the stuff hidden cuz i put the bat file some where else. they did broke the bat file encryption but there is nothing to be found unless you know where exactly to look

  • thank you very much for helping me… GOD BLESS

  • nasir

    hey i have gone through the above method but when i retrieve private folder, it shows empty folder i could not find data now please help me

  • saritha

    great post……..its very interesting……..

  • Sanjay

    Thanks due it is very helpful

  • CH Naveen Kumar

    Kindly suggest , what need to be done as , when we select locker the password is visible at preview

  • sagar

    if we search the file, search box it will show the files it not a protecting file it’s hidding the file…:P

  • inot

    does this work on external drives??? reply asap thanks!

  • pitbull

    how do i get my pictures back that were in the folder all are gone

  • eli


  • ashwin

    amazing it works thanks for the code

  • great post.. and all the comments were useful

  • amyy

    dude i lost that bat file and i am not getting it back please help me out please

  • Atharva Deshpande

    Thank you really………………it worked very well………………………..

  • valeemkhan

    this side is very bakar and not working atall

  • Mark


  • Chris

    it is working

  • Maaz

    Thanks it work GOD Bless you

  • ganesh

    its very useful for me

  • wish2seeuagain

    i accidentally deleted the folder and locker can u help me to restore it coz i cant see the files on recycle bin, please help me

  • khattak

    wao this method is so helpful

  • ajil pappachan

    thanks!!!!it really worked

  • Isabelle

    PLEASE HELP!!!! Do you know what do to if you forgot the password and can’t find the “locker.bat” file? PLEASE HELP!!!!

  • Eion

    Is there a way to make the password hidden and show up as * for example if the password were Password it would show up as ********

  • roww

    i lost my locker.bat file

  • Its nice for protect for folder as without installing any additional 3rd party software………..

  • ravikumar

    it is good but i have some problem in this case .i.e bat file is deleted so how to get the my folders please give me suggestion



  • kaushik

    how to change the pass word

  • yonatan

    if i place file like video in private folder it can play in other computer? thank’s before :)

  • Aikolian

    or u guys can easily use antivirus that provide such tools, im using Trustport.. n its great! :)

  • HackerZone

    I liked Ur idea the most dude……….
    hope u progress and bring other ideas also……….

  • swabra

    i am putting my password and it doesnot bring the private folder

  • Cube Root Of Unity

    Thanks! It really helped.

  • Sha

    oh! really its good,thak you so much.

  • Saskia Salsabila

    how to lock the folder after unlocked it?

  • S.Santhiya

    can we type change the folder name as we want

  • icomputer

    i can’t re-open the folder even though i type the right password

  • karthick rajan

    it is very use full to me.

  • Jason

    This code,because the original said that the Control Panel file didn’t exist for me,will allow you to Lock with Y, End with N,and Unlock with T. Just like the original,replace PASSWORD_HERE with you password.

    title Folder Private
    echo Are you sure you 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
    if %cho%==T goto UNLOCK
    if %cho%==t goto UNLOCK
    echo Invalid choice.
    goto CONFIRM
    ren Private “Private”
    attrib +h +s “Private”
    echo Folder locked
    goto End
    echo Enter password to unlock folder
    set/p “pass=>”
    if NOT %pass%== PASSWORD_HERE goto FAIL
    attrib -h -s “Private”
    ren “Private” Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password
    goto end
    md Private
    echo Private created successfully
    goto End

  • K

    OMG AMAZING!!! (Not a techie, so I really appreciate this – thank you!!)

  • person.ano

    awesome. nice help I really am going to use it!!!

  • Charlotte

    I want to delete the locker bat and private file but my computer won’t send all the files to the recycle bin. The few files it does send cannot be emptied from the recycle bin afterwards. How do I get rid of all files, the locker. bat and the private folder from my computer?!

  • name

    haha it was good , but if you leave the password like 123456, and if you try to unlock with any number you can unlock 654321 5256325 52425 what you want to write that will be unlock, doesnt good work .

  • startalk

    i follow the instruction but i can’t do that.
    do you have more ideas on how to protect my files in a folder?…help..

  • samwel

    yes it works but what happens if the locker file is deleted? Do I lose all my documents in the folder?

  • Bala

    smart work if some one open the bat file in notepad then password will be exposed………

  • This method does not work for me. I created the locker.bat file as instructed. When I double-click it, a cmd screen flashes very fast, but I can see that it says “Private Created Successfully”. However, the Private folder is never created. If I right-click on locker.bat and run as administrator over and over, the script seems to be functioning in that it allows me to lock and unlock the “folder”, which does not exist.
    Can someone please let me know what is missing? I’m running Windows 7 – 64.

  • ty for this :)

  • rajol

    thank u very much.I got it here for what am looking for.

  • Prashant

    Thank you so much…its great

  • muffruff

    Lol thanks for the heads up

  • Isaac

    Right click and then go to “EDIT” then scroll down to where the password is supposed to be lol.

  • SilverHatake

    You could hide the bat file in the locker. That’s what I did.

  • Shahnawaz

    It is good, but user can see the folder and nested files if he types in search bar.
    Then what could the solution for this.

  • Ritesh

    mind blowing yaar it great nice working thank’s bro

  • mrpart10

    how to unlock does files when you delete the bat file (i deleted it and i cand enter my files now)

  • Awesome dude`

    this method did not do anything.
    i opened my folder and the private folder but none of them asked for a password

  • First, thank you, it may not be fool-proof, but it is simple and effective, just in case someone opens my “hidden in plain sight” folder, but can you chain this to have different passwords in different folders that are in the original pw protected folder?

  • Ayxan

    lotsa thanks for you
    it s working
    <3 :)

  • ele

    lame you can just right click the bat file to edit, see, or change the password

  • alfin

    It works, but when the Control panel{blabla} folder clicked its still can access the file inside

  • hey Startkala2011…need not go that far……………just say dir /ah and you will get that folder listed and say “attrib -r -a -s -h” and your folder is unlocked……………..

    this is not folder security. this is cmdline security..that’s it.

  • parisa

    it was awsome :))))))))))))))) i solved one of my biggessstttttttttt problems tnx

  • Mrunal

    but anyone can edit the bat file and see the password

  • Li

    Private folder is empty can’t see my file, when I used “locke.bat”

  • kashif

    Hi. Very long procedure and you must remember all step as well as the bat file detail. but its work so not bad.

  • mr.x

    bro hw to the pasword???

  • mr.x

    bro…..hw to change the password?

  • Tim

    Thanks man helped me heaps great guide ! XD

  • Josh

    This works perfectly for Network security. All you have to do is severely limit access to the .bat file with the security settings and it’s a very effective tool for keeping department document’s secure on the fly… of course the group security policy is more thorough… but if you just want to lock out one document temporarily this is very handy. Thank you!

  • dyalan_05


  • skull

    I need a help, when i open my bat file with the right password, command prompt it just don’t get’s open the locker and ask again and again for password even though i am giving a right password. how to get my data back ? tq

  • surffoxx

    Thank you so much for the simple instructions very very helpful!!!

  • Saif

    Thanks mate, this works as a charm.

  • Jared Hoiting

    Looks like a hoax. I tried this method. When “protected”, the folder only gets the status of hidden file. Everyone can set the computer to show hidden files. Click on the hidden file, no password is asked, and the content is shown. This is not as advertised.



  • Toria

    This didn’t work for me. I followed all of the instructions above but then when I opened the folder, no password was requested! Fail.

  • man

    dint get it

  • Jennifer L Carter

    This doesn’t work … it worked at first but after I locked it again the folder will not open again … now my files are stuck in there :(

  • Bro

    Great. I deleted the stuff because i tested and now i can’t delete it. you HAD to not mention that.

  • Cheesecake_lolz

    you have to open it and then lock it again to lock the file

  • Cheesecake_lolz


  • Jamie

    what is the best way to make it so you cant view or edit the locker.bat file. If someone has reasonable coding knowledge they can view and find the line in the code with your password which is unencrypted

  • Jamie

    What is the best way to limit access to bat file?

  • Jamie

    Can hide the file from yourself in security change permissions when you want to use This is only basic for people with limited compknowledge to be able to not just simply double click to find something you dont want them to

  • SN

    This is not a safe method to lock the folder as when i opened the history of my computer there was a content of all opened files from locked folder and when i clicked one of the file from history of my computer it opened without requiring any password.

  • viji

    mayb u can jas edit the text file again at “PASSWORD GOES HERE”

  • dapidmini

    thanks a lot. this worked well enough for me. I don’t think that people will try to open the locker.bat file for no reason so the hidden file would be safe enough.

  • JohnnyG

    Worked when I set it up and I’ve tried it half a dozen times and always works as described. So a great idea for which much thanks. (And to those who say it can be cracked – yes of course but it’s not intended to defend information against determined & tech-savvy attackers; just to keep stuff from prying eyes; which it seems to do verty well.)

  • pacco

    the folder is not locked.. its just hidden with the System and Hidden attributes ;( i thought u had a real password for the folder but it looks like i was wrong lol

    maybe u could create an vbs script with some move and a real LOCKING engine by entering some values on the windows’s registry but let these people be happy with the illusion of a secure folder =D

    i think more than 90% dunno that for just typing on cmd: ” dir /ah ” on the folder will show up this folder and then.. someone will be able to access the folder =o

  • pacco

    let me say a tip for a good update of this batch file: change the file name to ” ” (alt+0160 its a blank space, not “space” but its a space lol) and change the location of this folder and then change the icon for a blank icon (may require a vbs script for detecting the OS. if it is a different OS then the icon index may be different) bla bla bla i think u got it

  • HM

    have anybody tried to type a wrong password? cause even if i typed the wrong password still the private folder shows up and all the subfolders too and have the full access.

  • laura

    I write the right password and it wont open

  • DD

    Thanks works great I used this on a USB drive.

  • Kerby Lalime

    I put the password in and i gained access the first time but every other time i access the folder it just opens without the need to enter the password again.

  • Bryyo357

    If I just right click on the .bat document and click “edit” I can see the actual code, including the password I put in. Is there any way to make this more secure?

  • BatchBeginner

    It worked for a few weeks, but i went there this morning, unlocked the file successfully, and tried to lock it back after im finished with my work. But it says:
    The process cannot access the file because it is being used by another process.
    File not found – Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

    pls help.

  • BatchBeginner

    Have you locked it after you unlocked it with the password?

  • BatchBeginner

    Haha yeah, it isn’t very secure in my opinion. Anyone that knows batch can see the password. What I did was I made it create the “private” folder in another location, so it’s harder to be seen.
    But I dont know what you can do to make it 100% secure, maybe ask batch experts.

  • BatchBeginner

    Maybe when you put in the password, you left or deleted a space

  • Empy

    I like it. All I wanted to do was have a folder not bee seen. Thanks!

  • Anonymous

    you need to reopen locker.bat to lock it again

  • Sharon

    Best instructer…thanks alot..

  • brighting pearl

    great job.but how can i delete this folder?tell me about this

  • Tony


  • Sowmiya

    Thanks a lot… :)

  • nat

    nice…it worked like magic

  • varun

    this is just awesome. thank u so much hammad

  • karan

    How to retrieve the folder if someone delete the “locker” symble??

  • epicness

    you can go under edit to see if you did a mistake

  • Ikram Ali

    Who made it, I just want to know that great man Identity. Really Awesome. THANK YOU SO MUCH. …:)

  • bhautik patel

    it’s awsom…thnx alot. now i sexure my all data. thnx

  • Draude

    Thank you very much, it feels great now that all my files are secured…

  • SUD

    When I created a locker.bat file and double clicked it. It simply pompt the cmd widow for password. No private folder is created.
    Please help

  • navamani


  • Adarsh PA


  • Evan

    Thanks! Now I can hide all my hentai files! :D

  • Luna

    This is awesome!! Thank You.

  • Atlas

    You need to make sure it is directed to “all files” when saving, and before you save the code at all make sure you delete “PASSWORD_GOES_HERE” and put your ideal password in its place.

  • Sen

    Wow too easy and solved

  • Raja

    Great thankzzzzzzz

  • !!


  • sonu

    thanks its good works

  • imran

    but any one can break the password who read your tutorial .

  • -.-

    This is too easy to crack -.-

  • anand

    hello, I forgot the password that i have created. want to retreive that folder its very important, so can any one please help

  • :-)

    Open notepad, drag the batch file (the one created in the tutorial) into the notepad windows. Then, where you typed your password to set it, you should be able to read it

  • anand

    Thanks a lot for your help. Will try it.

  • Sbu

    This display the PASSWORD of which I don’t want a password to be shown,

    The message says enter the password…………..which is my password.

    I want to hid the password?

    please assist

  • Sbu

    It is a great tool,but how can I HIDE the “password” NOT TO BE VISIBLE?

  • Mervin

    Thank you so much dude.

  • benson

    When I lock mine creates a new folder that is called Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} and you can go to that to open all the files.

  • Jim

    This works exacly as described…ONLY ONE MAJOR PROBLEM. After i created the file and was pleased it worked–for the heck of it I did a “search” for the files that were in my newly created “private” folder…to my surprise the supposedly locked files could be viewed (and opened) from there. Any advice on how to slove that?

  • Nick

    I have lost all of my files now? Please HELP! I have done everything as described but now when i click the Private file nothing appears!

  • Ben

    A nice little solution for the batch file is to set it as hidden but save the location into an unnamed text file then just copy into Run which then access’ it without anybody being able to see the actual batch file and it’s programing!

  • SK

    Is there a way to name this something else besides Private?

    If I try to rename it it just creates another Private folder and not the renamed folder.

  • Ben

    In the coding change all the parts that say Private to the name of your choice. Just try not to delete anything other then the words Private

  • j

    but what is the use of this batch file as and when you click on the file it shows the code, you have to click on hide the preview pane. you will get the complete code with the password!!!!!!!!!!!!!!

  • Jo

    That’s awesome but with the one drawback , “password known” in the code .
    I would like to give a solution to it by suggesting you’ll to save the text document containing the code in someother folder so that password cannot be hacked
    I did not try it… This is just a suggestion

  • Percy

    Hello everyone I think I have a good idea of getting rid of this password security problem in protected document storage. The literal idea is to cut and paste the document containing code within the private folder itself with the password hidden in your smart phone memo…. :-O:-)

  • Charles

    This is only really good to use if you’re just trying to keep curious people out of your stuff. It’ll keep most people out of your stuff, but occasionally people might take the time to open up the batch file and get the password, so it isn’t suitable for private company documents and the such. In that case you would be better off using a third-party program or an encryption service.

  • Developer

    Yes I do get bat to exe converter

  • ruqaiya

    i too,am having that problem..can anybody please help?

  • Swisten Harsh

    if any person delete this *.bat file so how can it possible archive our data inside the private folder

  • Valerian Mitchell Cotts

    thx alot

  • trellian

    Eaxctly what I was looking for! Thanks so much,

  • david

    thx man

  • Phil

    Thanks very much that helped alot.

  • El Diablo Matamoros

    Awesome dude, thanks.

  • Joey

    this is so awsome!

  • dilly

    thx bro

  • SAM

    Hi Hammad,
    Thank you very much for providing this code.
    This is the very secure self utility.

  • harry

    thx for that.
    it realy helped me so yeah, my dad cant enter now.
    thx a lot and good bye.

  • Kuang

    thx a lot, wonderful

  • Muhammad Awais

    it has faults if you search for the things in the start menu that you have kept in the locker they will show up despite being locked up

  • darknessblade

    it also works in win8

  • Anonimo

    me a sido muy util, gracias

  • I don’t understand

    It locks up only once. When I access it and then try to lock it again, it just creates another Private folder. How do I solve this problem?

  • Help?

    When I try this it creates a folder named “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” when I lock the “private” folder and when opened it contains the files that were placed in the “private” folder. Can anyone help?

  • Bagadskis

    It will not work against IT guys, but for average person it will do the trick :) EPIC thing

  • Jai

    how can i change the password without repeating this process ?

  • Ad.

    wonderful little piece of code – thank you for supplying it!!!

  • Mistral

    Doesn’t work.

  • BulliedChild

    Works, very useful.

  • Thisara

    done working

  • hamse guiapal

    haha tnx :D

  • Shaf

    I keyed in my password but it still says password invalid and it doesn’t open up my folder! How can i correct this and retrieve my folder and files again? :(

  • Jean

    you have to double-click the locker.bat again, there’s a prompt says “are you blablabla” type Y then ENTER. That’s it.

  • Jean

    did you type it correctly?

  • Jean

    Thanks a million!

  • Mudit

    tysm dude :D

  • ugh it didn’t help

    didn’t help

  • adi

    dude its best but the password is not getting stared

  • haider awan


  • neo jiawei

    thanks. it worked. to users who does not work, i think you forgot to change the file format save, look at the pic5 bottom. And you may success.

  • neo jiawei

    but i have found out a way to hack it in about a minute ago.

  • Harshal Gajjar

    And anyone can open the file ‘locker.bat’ using notepad to get the passcode. :P

  • Maya

    Thank you so i can hide my ‘private stuff’

  • Hentaiism

    It works but, If you go to start and search for that folder or a specific file in that folder it still opens it. e- e

  • Harish Acharya

    i forgot the password please tell what can i do…

  • Vasim Khan

    really it’s very easy.

  • Rich Armstrong

    Its actually very easy to hack because of how easy it is. Right click the .bat file and then click Edit. Find the line with your password on it and there you go.

  • John

    Right-click the locker.bat folder and click Edit. You’ll see your password. All you got to do is change the password and click Save

  • akash

    ya u r right bro

  • jojo jacob

    but after sometimes the hidden file displayed there automatically.. how do i manage this problem?


    thanks for helping

  • Pingback: How to create a Password Protected Folder in Windows 7 « Information Technology()

  • prazwal

    this is not useful..!! if somebody deletes the folder or the locker then, how could i view my files inside the folder or the locker?

  • Stair Bob

    Thanks. Helpful for my needs.

  • kither

    you can just edit the bat file an change the password

  • Anna

    This is not wrking….when i opend the control panel folder after locking the folder showing the content of the files inside the private folder….

  • Sunny Side Up

    Thank you – very helpful. Just what I need.

  • iamsandesh

    its awesome but can you stop editting the .bat file so that no one can edit it and see or change the password other wise any one can edit and change or unlock it.

  • ishaan

    Great…. after searching 2 hours in web I got the answer now. Thanx….


    Hey all. Doesn’t totally make it hack proof, but put your document with your password in the private folder itself.

  • Muhammad Farrukh

    thank you so much its really helpfull for me

  • siul zepol

    thnak you ver much muah!!!!

  • nikki

    help it says ‘UNLOCK’ is not recognized as an internal or external command, operable program or batch file pls asap

  • Sumit Kumar

    Its really work & help me a lot
    But is their any way that can protect my folder being deleted

    Like require a p[assword when any 1 trying 2 delete it

  • rani

    Thanks very much

  • Yasir

    if someone delete this batch file then ?

  • Navi

    Thanks a Lot

  • rsr

    You Great Code is Working Super……..!

  • divyansh chaudhary

    When we lock the folder there comes another folder that contains all contents of the Private folder…. what can i do

  • Nikhil

    dude you should have mentioned, if anyone open and reads the batch file, he will know the password :-)
    or even if show system files is set, then the folder will show :-)

  • Kiam

    Thanks alot.. it really works..

  • rajesh meena

    relly work it


  • HiItsAshley Inc.

    This works on my Minecraft Folders, so my 8 year old brother can’t open Minecraft any play on my profile. :D But it doesnt work on my also technologically advanced 12 year old brother. :/

  • Amir

    you can open it and see password by editing the batch file.!!!!!! really bad

  • Edward

    Actually you can put the .bat file on a thumbdrive or move it to another folder. When you want to unlock the folder move the .bet file back. This is cool for free.


    thanx MAn………… it works……………

  • sathish

    i am also having tha same problem i.e (after locking the folder the private folder has changed the name to control panel.{21Ec……….}.wat to do?

  • justin

    if i change my window then will this pasword work or not plz tell me?

  • Jorge

    Unfortunately I got my files lost with the batch files above. Now I am using a more secure way to lock my files with “Protect My Folders 1.3” program.

  • ashraff

    thank u so much

  • Dan

    lol now my i dont have to worry about my parents looking at my files

  • sathya

    it works thanks

  • jhulian

    i cant see my file when i open it

  • computerhacker


  • Leanne

    Thanks! it works.. :-D

  • ——=

    thnks it works properly

  • corinny

    amazing, thank you you freakin genius!

  • Rina

    THANK YOU! Greetings from Indonesia

  • oi oi

    I have problem password (alt 0160) cannot be read or something. The .bat file can be open but when i type my password with (alt 0160), the folder is not showing. is there a solution?thamks

  • nate

    one question tho i did try something i made a new folder and i tried to open it and cmd asked for a password so i deleted the .bat file and it deleted is there a way to make it so some1 who doesnt know your password cant delete the file without a password

  • cm punk

    man..u just made my day..thanks a ton :)

  • the guy

    that was awesome! whoever made this is a genius! although its easy to hack ;)

  • the guy

    but its still cool right?

  • yujin

    its cool but its still not safe, because when you change your folder setting in show hidden file, and you open the .bat file a hidden folder that have a file name of Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} will show and you can see your file there even you did not enter the password.

  • divy

    still the hidden files r der in other folder name called contact panel{……………}

  • Gugu

    Damn it genius., It works.
    Thanks. It’ll hide many “private” files

  • Dhan

    Superb Bro! thanks a million

  • MD

    works fine

  • sree

    Hey Tell me What If The .bat folder is deleted?? Files Gone??????

  • Tamzid

    But, It just makes the folder hidden….weak solution…showing hidden folders option in is very easy to open, moreover opening the batch file anyone can find the password…

  • Sjonnie

    Thank you for the simple explanation, it works fine for me.

  • Pudica

    wonderful, it works perfectly fine! thank you so much!!

  • Varun Mittal

    awesome.. many thanks for this::)

  • Manish Singh

    Thank you very much. Its Awesome…

  • Sharon


  • Andy Robinson

    Thanks for the tutorial, better than others i’d tried, it worked doing it your way

  • danish ansari

    thank you…its amazing.

  • The German 31

    what if you can’t type the password because it had a special letter

  • AkiMikael

    fantastic!! thanks a lot

  • Pingback: Creating Password for Folders | myseluch()

  • julius

    thanks i need it to hide my secret identity

    #blue lightning

  • KIran KUmar

    Thanku very much
    it is very simple method.

  • Nitin Ulé

    thanks a ton

  • Makhi

    A hundred million thnkx to show how to set password.
    Hats of to the entire team who made it

  • Siva Charan

    Copy paste Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} in windows explorer.


    geeee…. thanks! this is amazing! :)

  • m3

    thanks man thats amazing!!!

  • Ram

    Mindblowing dude…..

    after seeing this code.. i also got interest for developing such codes…..

    Thank u sooooooo much

  • Jay

    Worked like a charm! Exactly what i needed! Thanks!!!!!!! ;)

  • Nero

    I’ve done every step tell #5, but when I double click on the text document there’s no file named “private” appears it normally open the text document :/ !!!

  • maulik

    awsome it is… loved it !! worked with one go.. :) :D

  • len

    wow man, you code guys are TOOO Cool!

  • Aaron

    Hey. I get as far as step 6, and when I got to 7 command prompt open and closes too fast. It asks for the password, then the next line tells me
    The syntax of the command was incorrect.
    goto was unexpected at this time.

    Any ideas.

  • b

    Pretty neat but anyone who knew to do it would open the .bat file in notepad to get the password. Also any folder you have locked can be accessed through the ‘frequently visited folder’ list without entering the password.

  • Pra

    Thanks…great work…

  • CaptainWolvez


  • Nico

    If you create a password protect folder and you put stuff in it and you move it all your stuff is gone?? Why??????? then it is not helpful at all?

  • kristine

    it can be cheated..through editing the locker.bat!!that’s why im finding another way..

  • chaitkrrish


  • b4nd1t

    You can put the .bat file inside the private folder so when its locked people can not read the password from there

  • dadd

    right click locker.bat….edit…..change password

  • Rom

    guys please HELP, i have reinstalled windows and I copied my hidden folder that I have created using this method and I take ownership of the folder but when I try to open the .bat file or the exe that lets you put the password, it says I dont have permission? But, I have already take ownership of the whole folder.. please help asap!!

  • Rom

    …In addition, when I try to run the locker.bat or edit it, it says Access Denied, btw, I have copied the hidden folder from Windows.old, but I already have the ownership of the folder and the locker.bat file but I am still dont have permission, helppp!!

  • Kamran

    thats bullshit man, you can find private folder by enabling show hidden files

  • Rom

    Like I said, ive done that.. its just I am unable to open the locker.bat to unlock the folder. The windows command processor just flashes and thats it.

  • Music Helps

    ive done this easily but anyone can get in as it says the password in the locker thing -_-

  • Music Helps

    ive done this easily but anyone can get in as it says the password in the locker thing… anyone have a safer or way to hide it?

  • TheGedemondan

    As you say, not 100% secure, but a perfect solution for my needs. Thanks very much.

  • Themusiciangedemondan

    Not to secure, but good. In the option to edit the batch file you can change the password easily. My 12 year old brother could find it out easily(but he does know a lot of coding)

  • Radhakrishnan

    it’s super but not secure so lock.bat use and go to control pannel , folder option hide the batch file it’s secure 99%

  • Dipankar Sahoo

    I have one problem. I have put the password correctly but during opening it is saying that the password is not correct. Please tell me how to open the folder. I have checked the password is correct.
    One more quarry–Suppose i have locked a folder in my hard disc in one computer with one password. Can it be opened in another computer with the same password from that harddisc?

  • Sujeet Agrahari

    Dear there is a problem anyone can delete locker.bat and with your file will be also deleted .SO please suggest a solution.

  • comradealain

    quite good, it served my purpose but any person who is better than a noob will find the password. Please find a solution for the problem.

  • Mr Iby

    my locked file’s won’t open? even with the right password. i’v used them with no problem 4 a few week’s,, now they won’t OPEN ?????

  • just stopping in

    use a linux boot disc, like ubuntu, linux will let you look at anything without permissions…and you dont have to install it..just hit the try ubuntu option

  • just stopping in

    your stuff isnt gone dude…put the locker back in the file you created the private folder, unlock and voila your stuff is there

  • me

    I hope everyone realize if you press right on the .bat and choose edit, you can see/change the password yourself…

  • me

    just press right on the .bat and you’ll can edit the bat file
    simply change the code till you’ve got your map back

  • Dave

    thanks a lot

  • Rob

    Just a question. I went through the whole thing and it seems to work, but how does the folder open? It asks for my password, I put it in and nothing happens. When I click on the folder all it does is asks if I want to lock it or it asks for the password. What am I missing?

  • Utsho

    What if someone delete the batch file……????

  • victor

    Thanking u, well done, thanks a lot

  • EVaN.1998

    Thank you it works but when I click right click mouse it show edit but if you didin’t do with someone who is with you he will not gonna know what is your password so don’t worry about it guys….

  • S y n

    Move the locker.bat document inside the private folder..

  • Vasu Sri

    Hi done correctly, it has working also correctly, but nothing is hided in there, once you click on that locker folder everything is open, what should i do, please anyone can help me out of this.

  • Helper

    again click it and type “y”

  • Shahrzad

    WARNING: It can be simply unlocked, in the folder options if you remove the tick for hide protected operating system files,then everybody can see your folder,it seems useless

  • K.Anbazhagan

    Wha it realy works superrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  • Shruthi L R

    yes you are right

  • Venkat

    Great help…:)

  • Schazil Najam

    if u just open the bat file in edit u can always see/edit the password….that’s no help

  • Asram

    Its very Nice

  • junaid

    tell me in easyy way i dnt know what u say ?? please my email is

  • prithiviraj

    great help.ppppppppppppppppppppppp

  • deep

    If we delete the locker.bat file what is the situation.

  • Piset

    I do all step but folder privacy still show and can open even I enter Y or may password

  • Peeta Mellark

    i would be glad to give any of you a free copy, 24 copies left. if you want one email to

  • Anonomys

    Anyone can pass this password if they know what it is and how to make it. For example if you locked the folder with locker.bat with a certain password Ex. 123. Someone can make another locker.bat file with a password of their own choice Ex.12345 But they have to first rename it to lockerr.bat so they move it into the folder that has the locker.bat file in it. When they move lockerr.bat to the folder that has locker.bat in it they can use lockerr.bat to open the file locker.bat has secured. Using any password they want.

  • Hitesh

    Simple mate just create another same file like that name it locker.bat and save it in trhe password protected file since there was already one there i will ask you to replace it say yes and you changed the passowrd!!!

  • Ravi P.

    Total useless..
    here example is only doing folder to rename & hide. and on unlocking means it will rename to original folder name and unhidden it. thats it. not secure or not need any password for to do it in easy way.
    you need to some googling, and you can make hide/unhide batch file easily. LOL
    BTW Good joke here.

  • Ravi P.

    Better you use “7zip”. its free and secure in all ways.

  • your_face–>my_ass

    nice proper use of the English language bro.

  • your_face–>my_ass

    So this is not TOTALLY useless, just mostly useless. it is only good if you are trying to hide something from people who are not computer savoy or if you just want to prevent someone from accidentally opening a folder you don’t want them to see. My advice, go ahead and pony up the dough for one of the programs that makes it easy, that is what im going to do.

  • lavnika

    this is useless,seriously…..

  • miggy592

    You know someone can just click edit on the locker file right? Password and everything is visible

  • guest

    no.its not true in my case…
    showing hidden files does not reveal the private folder

  • ravindra

    keep the locker thing in any other folder..example in your game folders ..
    where only you can recognize can also rename it there..
    nobody except for you will know where this batch file will unlock your secret folder..if you double click it in another folder it just creates an empty folder named private…have fun..

  • ravindra

    keep the locker thing in any other folder..example in your game folders ..

    where only you can recognize can also rename it there..

    nobody except for you will know where this batch file will unlock your secret folder..if you double click it in another folder it just creates an empty folder named private…have fun..

  • ravindra

    delete the existing batch file .. and create a new batch file with a new password and try again…..
    For your second querry,,the answer is yes

  • ravindra

    if they delete locker.bat only, then my friend, your files will not be deleted..
    you can create a new locker.bat and that will do the trick…
    but if any body deletes the file which contains your secret file then your data will be lost

  • ravindra

    so just move the bat file to another folder you know…
    well then nobody could find out the original location so your secret file is secure..
    when you want to open just bring the bat file in and open it..

  • twitch

    download TAKE OWNERSHIP, install it then right click on file and its now yours

  • prithiviraj.s

    very usful thanksssssssssssssss…………………………………….

  • Anish M.

    Thanks Man !!!!

  • C. K.

    You can make the .bat file a hidden file and turn off the show hidden files and it will be an empty folder till you need something in the folder then

    turn show hidden files back on again.

  • Umar Saeed

    It’s awesome, but my question is this if you secure the personal data with password and of course the data will be hide expect locker.bat file, but in my absence if some one delete the locker.bat file then? is it possible to make the restriction or unable to delete the locker.bat file by other user???

  • hafsa

    when first time i locked that folder it was locked and it was opened when i wrote the password but when the second time i tried to lock the folder it was not lock and the error accured that the action is denied, can you please help me to solve this problem??

  • Raj

    its just a vogus trick, if someone deletes your file or cut the
    locker.bat folder to somewhere else, then the whole data in it will
    delete. So, be aware of it. its better to download third party software
    like folder lock, etc.

  • Rohit Garg

    This is Not Godd!!!!!!!!! When You save The File. Click on .bat File and Open with Notepad and then You Easily Change the Password. So It’s Not Work Properly.

  • Seanypop

    Make the.bat into a .exe then it wont be able to be edited

  • Milan Amarasinghe

    thank dear

  • kavita

    can i retrieve the data if i have forgotten the password? m actually in big trouble… please help me out.

  • Shujinko

    Pfft super gay just go to the lock file and right click Edit right back to the Text… pw is there

  • Eddie Salvatus

    Advanced users can still access your files… It is just hidden! LOLz

  • Austin Harlan

    you should try deleting the locker.bat and restarting with a new password hope this helps :)

  • Austin Harlan

    can anyone tell me please on how to ban or keep the edit buttion away!!!!!! because im very strict with my stuffs. please email me at to awawawawsa lols

  • Austin Harlan


  • chris kava

    it’s good but it isn’t very safe because you can find the password easy

  • dhanunjay

    it was not safe because if we enter a wrong

    password ,to it was accepting and opening the lock

  • harsha

    Its useless.. The folder’s just hidden!

  • bob

    My folder doesn’t even disappear it just changes the name of the folder.

  • Pravin Rakhewar

    Very usefull thanx………….

  • Pravin Rakhewar

    If i forget my password then, how to reset password….?? plz help

  • maneendra

    harsha did you tried even ones.. or you have addicted to say anythings

  • Devin Heart

    You can edit your bat file. Just right click and press edit,

  • Devin Heart

    Exactly, then that one guy who always uses your computer cant find it. Unless he is experienced…

  • Ahasn

    by using this method every one can see our password…

  • salah

    you can hide the bat file and show it , i’m tried that and it is worked

  • salah

    thanks , so much

  • akash

    some problem in this method. anyone can delete .bat file

  • smeds1

    Do you look for things you don’t know exist? If someone doesn’t know the disappearing folder exists, why would they look for it?

  • Matt

    and you only need to show hidden folders to see the private folder

  • Krishna moorthy

    Its working fine… Is there any way to change the password?

  • biren

    good nice ra ra

  • Hamza


  • Unknow

    else u can use ttruecrypt and on top of it it’s free :3

  • maneesha

    the bat file asking password but the private folder which my files are there is showing out all my files when clicking on that file how is it possible?

  • Dik

    You can delete text doc

  • Vaibhav Falke

    yeah u can easily … just right click on locker.bat file and then on edit . There u can see your password written . It helps , try it out …

  • zafar

    Very nice dear but if some one delete that lock file then ???????????? where is our lock folder and can we open that

  • Krishna Varshney

    miss. it is too easy when u save data in private folder then u click locker or type y then your private folder will automatically locked….

  • Aja

    I knew there had to be a way to do this! thank you, very helpful :)

  • Ali Raza Ghori

    If we remove our password from locker.bat file then any one who can access that file and can edit locker.bat file with new password and can access data.

  • James


  • yongis

    actually, your folder was just hidden (as it became a system folder). you can still view it by going to:
    control panel>folder options>view tab>click “Show hidden files..>uncheck “Hide extensions..>uncheck “Hide protected operating system file.”.
    you can now view your folder but it’s folder name is Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}.
    viola! anyone can now access your folder.

  • yongis

    if you are using windows 7, go to:
    control panel (View by: Large icons or Small icons to easily find “Folder Options”)>folder options>view tab>click “Show hidden files..>uncheck “Hide extensions..>uncheck “Hide protected operating system file.”.

  • Chris

    What happens if I forget the passsword? Is there anyway I can access the folder again?

  • Dan

    Just back everything up on an external drive and whatever data you have left on the computer archive it with WinRAR and set a password.. boom, problem solved!

  • Alan

    it just changes the name of the file for me

  • andros

    how to download this thing?or you can make it by yourself?

  • unknown

    how to access the file if you forget the password

  • Aftab

    hey friends…
    Its not useless, because you can use security on locker.bat to avoid your password from being changed by anyone else, And no one can access the private folder from folder option…..(

  • vivek rathore

    everyone unlock this folder Easley

  • vivek rathore

    hi dennis,
    u r right like me.

  • Nathan Flynn

    locked file works great, easy to create and use. thanks

  • Thomas

    open the locker.bat and read the password that you set. just like anyone else can. This process is not very secure at all.

  • Thomas

    That is the other issue. Then it would just be a matter of creating another bat file. since the password is set in the bat file it doesn’t matter that you have to recreate the file.

  • rockie

    dude agr tere koi locker file delete krta hain toh woh file hi dte hoti hain data nahi …wohi file bana kr tu file show kra sakta hain

  • Alben

    thx a lot. very smart workaround.

  • SID

    Lovely boss.. Thanks

  • AJ

    thanx aton…work grt..!!

  • Anand

    Really Great, thanks a lot……

  • merv

    I agree this will never be that secure as you can read your password from the preview pane. However reducing the font to size 1 and changing it to wingdings or something like that makes it perfectly acceptable as a medium nosey parker only type security, might not keep my bank codes in it but for anything else……..

  • youn

    heloo bro delet that folder exept locker now you can not change password and now one can see it

  • youn

    delet the folder new text document

  • sanele Mbambo

    thank you very much, although you cant hide it when you search what you hide you can find it and if someone wants to they can do whatever they please with it

  • Shoyab Akand

    Thanks a lot. That is great

  • Chris N.

    This works so well!

  • Ashutosh

    Thank you so much.. this works really well.. appreciated.. :)

  • satyendra pal singh

    this process is true thank so uch

  • Ashamed

    Now no one will ever see or judge me because of my neopets screenshots

  • Helping Hand

    Not secure. Open the document in a text editor without need of password which then shows your password in the text. So the question becomes how do you lock the lock so people can’t access the password.

  • Lokesh

    Awesome dude..

  • Uzair Ahmed

    it work great.but now its not opening.after getting right password.plz help me.

  • Tayyaba Jan

    great way ………… work out 4 me thanx

  • vampy

    and what if some one delete the locker file..?

  • vampy

    howcome you unlock it?

  • vampy

    ohhh got it now.

  • karthik

    it does not work..u just go to control panel, and select “show hidden files”.

  • fofiwwlldjfhed

    works very well, but I would suggest not putting any very important documents inside, as anybody can in fact delete the ‘Locker.bat’ file and then of course all files within it will be destroyed! :D

  • Chetan Tembhare

    hey bro..great work…but there is some problems…it will open the file with any password..even i press wrong password. another one is any one can delete the bat. file…bt i have solution for this..u can make a bat. file to exe file..and that works..

  • Avi

    You can create another bat file with same password. It will work the same way.

  • Sifat Zahan

    in this method, unwanted user can easily retrieve the password from the text document. so any solution for this?

  • Kingvikdal

    Works great! Thank you :)

  • Happy Be

    Its Working Fine..!


  • Simple Does IT


  • Abdulhaq

    Not secure. you can easily find the private file by checking out the “Show hidden files” and “Hide protected operating system files” in Folder option. even if you have the “locker.bat” file or you delete it. If there are any solutions for this, please help me…

  • toeknee

    How do you remove this if you no longer want to protect your folder???

  • sree

    if i forgot the password what i have to do

  • Joshua Lee

    delete the text document

  • Red thunder

    i forgot my password . now i do ?

  • punit

    you can change the file name alsp with bat file you need to do2 change at first line and last line where mdlocker insted of locker you can write your personal name at both place and save file at that name.. it will help you.. in some way

  • Rosen Ivanov

    if u forgot your password’s do this :

    Go to the “locker.bat”
    Right click / Edit, and you can see your password. :)

  • Dhruv Sharma

    not wrking in my case.. no new private folder is created

  • ebin

    but i can open folder Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} while it is locked. what should i do?

  • Antreas

    Hi, use this method but sometimes the folder does not lock and is still visible.
    one i restart the pc then i am able to lock. any ideas why?
    thanks a lot

  • sivasamy

    This is Super… I like this. Thank you

  • Sargeraas

    thanks a lot excellent

  • Michael

    Thank you, this is awesome. Now I can hold my homework in a file without getting them deleted lol :P

  • Sze


  • Sifat Zahan

    i meant after i save the file like in step 5, i can reverse back the step and convert to text file again. that what can i do?

  • Mughal Jee

    I have done these all step every thing was good BUT it after these all process it was just compiling private folder..did i any thing wrong.??

  • Julian Depaepe

    make .rar passwords works 100% no 1 has ever broke it

  • ziyanda

    I have done everything, this is not working for me. when i Lock the private folder it does lock and rename private folder BUT when i double click the one that renamed Private folder it opens everything that is in private forlder. By that the folder is not secured at all

  • Ananay

    Thanks it was very helpful + I was succesful!



  • Raja

    After i lock it it still says “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

  • umer

    it doesn’t work in windows 7

  • king

    i agree with umer

  • YJ

    How can I make my password invisible?

  • Gaurav

    There are certain possibilities

    1) You must have did it on the desktop
    2) You must have not changed the name to “locker.bat”
    3) You must have not changed to “All files”

  • Gaurav

    You can’t rename it!!!

  • Lazy boyi

    *.* it shows everything :O :O What’s the use then ???? :(

  • jitendra ku pati

    what about the text we saved as(.bat) in new text document

  • Mukesh Senta

    Good ….thanks

  • rc

    TY much!

  • LAinWLA

    SO helpful. Thank you!!!

  • Bisma Joyosumarto

    It worked, but I found out something: On step 3, you can change every single “Private” into the name of the folder you want, but you need to replace spaces of both the folder name and the password into signs like _ But I also know how to take over that locker.bat file and change the password. If you know how to change file types by renaming them, then you should already know how to take over that locker.bat file. That’s why this page said: “While the steps below will guide you in creating a hidden and password protected folder, this method is not 100% secure. It will deter the average computer user enough, but an advanced user will be able to access the contents of this folder.” This quote meant that some people (like me) know how to take over that locker.bat file. Sorry for a long comment.

  • Md Sirajuddin

    Hi buddy, these seems to be good but not exactly good and secure way for making folders as private… If someone searches with some key word such as confidential, private than that is visible in search results So finally user can open it and can access of files… which supposed to be private and locked.

  • saad

    well its quite useless because it make a folder no more than a system folder which can be seen under hidden files and option of protected system files :(

  • gianne2402

    its useless because if you unlock it, it make a folder named control panel. And if you clicked that without any password, your files will appear. So please help me, how can I delete the control panel if every time you’ll unlock it, it will appear?

  • Wesley

    It’s nice but if you right click it and click edit you can simply change the password. It would be good if you first have to type in your old password to get the possibility to type in a new one

  • bob54

    Am I missing something if you open the preview panel it shows the text document with the password?

  • deepthi

    It is not secure.1)simple searches with .jpg shows the hided imgs

  • Aisha

    awesome.. it really worked ….!!!

  • Sajid

    Whatever you said that is working. But data saved in Private folder also visible in ”Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Folder, which is automatically creating after applying Lock on folder PRIVATE. then what is use of folder lock????

  • Christina

    Yes it does. What you mean is that you got it wrong.

  • insarha

    its work but!! the only changes is the name of the folder…
    No changes.. the contain of the private folder is same in “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” No Good!!

  • Christian

    to make sure that your folder is protect cut and past the File,bat in the private folder when you close with the locker your text document showing your password is not visible or accessible as it is in the private folder lock and to open it you need to know the password

  • Christian

    to make sure that your folder is protect cut and past the File,bat in the private folder when you close with the locker your text document showing your password is not visible or accessible as it is in the private folder lock and to open it you need to know the password

  • Sahitya Banerjee

    thanks a ton! :D

  • Pingback: How to put a lock to a Folders |()

  • Anjali Sajeev

    Thanks a lot

  • hillyjr

    so am I.. what should we do..?

  • sara

    thanks very useful masha allah

  • Jan

    Thank you very much…. looking for this for a long time….

  • Hassan

    it works.. but its not secure … cz it can be edited easily

  • Steve

    If you right click and edit the locker you can see the password clear as day??

  • t_rex

    tysm it helped

  • sara

    i did it but know i want to delete it how O_o

  • Christian

    It rather would be easier, if you make your own user in you computer rather thatn locking a folder, cuz its fully visble as finding the sun in the clear sky

  • WillyAngel

    This is very helpful! You see, no one in my house knows how to use the pc without installing Babylon, so you shoudn’t use this unless you’re like me! #HentaiTime

  • WillyAngel

    Hey guys, why don’t you just put the password as a giant number? If someone clicks edit, the person won’t know where to look, and if you forget the random number, YOU can go to edit!

  • kepala naga helpfull :)

  • Brown Jason

    This solution is widely used to protect files on computer, but in fact it only helps hide the folder from others. For more important files, you need strong encryption solution.

    Kakasoft Advanced Folder Encryption is one of excellent file/folder encryption programs, you can download the trial version to have a try.

  • thebigcheese

    Weird question: How can I have the folder locked but still visible?

  • PS

    Sorry if this has been answered before, but: this worked for me a few times, but then when I double click and enter “Y” nothing happens. The private file does not disappear! What am I doing wrong?

  • pasta

    i locked but forgot password, how to unlock?

  • nunya

    right click and select edit and you will see your password


    This only protects against novice users.. you simply right click and select edit and you can see the password.

  • Dilan Prashanth

    i couldn’t unlock the folder
    access denied
    what to do?

  • Lord Anubis

    I updated to win8.1 and now i can t get to the private fowder and i need the files that are inside it

  • Gozreh

    Just hide the script

  • Akash Malik

    good work

  • joy


  • G

    Hi all, I tested the system and it worked fine, then added a number of files and directories. Ran it and it did not work, now if I do it is comes up with access denied, but I can still see the directory

  • Praveen Kumar P

    Simply type ” * ” in the search bar (Windows 8.1 OS),all the protected files will be shown in search screen :(

  • dsv

    not only that but it can be edit and anybody can view the password also

  • projectio

    thanx for this idea…….

  • Ahmed

    Great Work…! Thanks a lot Friend..!

  • Ahmed

    This is great but i would recommend to to take a copy of bat file and save it somewhere safe in other folder… Incase if anything goes wrong…. Individuals with basic scripting knowledge can easily work with this… for other people i ‘ll suggest to dowload Folder lock free softwares from website.. !!!

  • Ahmed

    Great …!

  • Ahmed

    The only best way is to Move the batch file to some other location when not needed…. Whatever,.. Getting a Folder lock for windows 8 at free of cost really sounds good for me….!!! Great day

  • Arthur

    This is fantastic!!! So simple, yet effective. Thank you!!

  • Miroslav

    And when u click right button on Locker.bat and Edit u see the password -,-.. Stupid

  • mohan

    It’s Really Awesome…

  • Barack Obama

    Just use a ‘Bat To Exe’ program and you cant see the password :)

  • FutureBrain

    what if the file gets deleted??

  • DamienSnijder1994

    only one thing they can change the password really simple and then they still can enter your locked folder by typing the password they have choosen so what to do about that??

  • zehra

    THANKYOUUU. works great

  • majortom

    you move the new text document into the private folder

  • hdc

    it is not secure. if any one type the file name in search, they can easily access that file.

  • hitesh

    not secure at all…

  • Raja

    It works & awesome…

  • joe shmoe

    the files still acessable its just a “hidden file” which is useless

  • Debal Dhar

    Just type ‘ * ‘ on the search bar contents will appear.

  • Debal Dhar

    Just type ‘ * ‘ on the search bar contents will appear. Hope this will help.

  • Ahsan Yousaf

    aint working …. its not creating a private folder

  • fd

    that surely works

  • fd

    thank you

  • Bluecarrot

    Doesn’t seem to work – I created the file and the Private folder came up, but even if i lock it i can still access it. Any suggestions?

  • mujahid

    type the password which you typed in place of PASSWORD_GOES_HERE.

  • thecrzysam

    works great

  • thecrzysam

    thanks a ton!!

  • raju

    I just set password and private folder also. but folder appear even wrong password. I mean system require/demand password, but function if wrong password. Please let me know,

  • raju

    but my bat file open(private folder appear) wheather I supply wrong password. I mean bat file demand for password to open private folder and it function wheather password is either wrong or correct. Please let me know,

  • Rockey handsome

    Truly good it really i don’t need to worry about my secret data.

  • azka

    i don’t what’s wrong, but when I tried it on my computer, the folder is still accessible, only the folder name’s that change

  • ravi

    that’s really good….it’s working….thanks

  • tony

    it works but I don’t put much faith in all some has to do is read the .bat file to find the password

  • Adnan Wakil

    Thanks be to you. I tried, it works.
    Adnan Wakil from Islamabad Pakistan

  • jkl

    Windows 8.1 If u right click on locked folder shows edit option & u click on edit ….it shows details of password…….

  • JustJanet

    This works great in Windows 7 Professional. Thank you!

  • Lee Paradis

    Its a good way to keep the novice user out. But anyone that knows how to open a bat file in notepad can find the password. Honestly a Windows native folder password system built as part of the OS is 20 years overdue. A more secure but still not 100% way of doing this is to create a compressed folder which can be password-ed.

  • fijianwarrior

    actually u kinda do coz its really easy to find out the password for the folder…

  • Brown Jason

    If you just protect the general files/folders from other people, this must be a very good free way. But if you need to protect more important and sensitive files on computer, using third party software such as Kakasoft Folder Protector will be more secure.

  • anonymous

    it works great. but, the password can be seen in preview pane

  • Mohammad Sameer

    it did’nt work !

  • shahidulhoque25

    It’s good but not better………….

  • shahidulhoque25

    This .bat file is not secure…….. we want better then it’s…..

  • shahidulhoque25

    absolutely right…………

  • meow

    it doesn’t lock the just hides it.. haha



  • William

    Worked great for me, many thanks! It is for the “average computer user”, which I am and most people around me are, so I feel secure.

  • IT_sara

    its dosen’t work u see why?

    the private file can be accedes when show the hidden fie is active and it can be opend without password

  • Pingback: » The Word – 12/9/2010()

  • Chan


  • Stylish

    This worked i love it. Now my sister can’t see anythings

  • mc wiz clavian

    hi your the best ever

  • Maryam

    Doesn’t open tried a thousand times

  • Tlhapiso Ramaselesele

    Wow…this is wonderful..I have just tried it now, it worked perfectly.

  • Cosmic

    this was great, thanks a lot man! ^ ^

  • Geeti Mehra

    its too good… thanks a lot

  • Geeti Mehra

    if we want to change the password then what should we do ???

  • Ritul

    thanks for the information, Its very useful.

  • Easy

    I don’t want to kill the popularity of this post but the FLAW of this method is so obvious. Open the .bat file with the notepad, change the password and VIOLAAA!! You can open that private folder again.. :3

  • Preview Pane

    If you open the preview pane, you can easily find the password. Is there a way to hide the preview pane?

  • Domen

    there is a software convert .bat files into .exe. u can search for it online

  • Vikram Saboo

    Just a further suggestion. Make ur password using the “Alt” key. It will typically convert ur password in some ascii format.. Like
    A typical sign will appear. This will be difficult to break.

  • Emerlyn Soo

    all files in the locker but type password unable to retrieve, how to get it back?

  • Emerlyn Soo

    when key-in password, an error message appears:
    Invalid password
    ‘Read’ is not recognized as an internal or external command,
    operable program or batch file

  • Emerlyn Soo

    Cool! But thanks anyway, I just managed to get back all the files which I was unable to retrieve by entering the password set.

  • raman

    locker isn’t opening my files……my files are lost……what should i do now…..????

  • yogesh

    in which folder i had made private folder that new folder cant seen. and all my locker.bat file and private folder with secure files are in that folder. so, how can i access it

  • Guest

    This does not secure the file at all. It just hides and unhides the folder.

  • light

    yes and can be opened through search

  • light

    open it through search

  • You can simply access the contents of the folder by searching one its contents ,then you open file location. It doesn’t work. Simple windows 7has got no folder lock app. You need to use a third party software

  • noo

    what if locker dosent hide my “private” folder it does nothing

  • phil

    when I password protect the private file does not disappear but turns to Control Panel file that can be opened?

  • srikanth

    it’s good
    but anyone can edit the locker.bat file in notepad and can change the password as they want
    and hence there is no security in this method

  • dotun55

    Doesn’t work perfectly on Win8

  • kosova

    i forgget my paswword :S:SS: , how can i take it back plz plz ttell meeee

  • Slobbadurf

    Right-click the locker.bat file, click edit and find your password or change it.

    Good job btw.

  • Ueki

    I did it… thanks a lot :)

  • Hidden

    It worked great for me!

  • Pingback: How To Fix Error 2107 How To Password Protect A Folder In Windows 7 Errors - Windows Vista, Windows 7 & 8()

  • brdparker

    I just did this on the work computer for some shotty folder that I don’t care about. A lot of the comments are pretty pessmistic because you can change the .txt file.

    Guys… just delete the .txt file, or move it into the private folder. Done and done. :D

  • anil

    simply exit from the window. it will also work, even if the password forget .

  • Dhiaa

    it’s not good because any one can open it
    he press the left button and select modifier he can change the password

  • ganesh

    Its not working on windows 7 , we can still see the files , and also the contents of the files.

  • Legoman Brick

    I can still see whats inside the folder in the home menu search bar if i search it up how do i fix?

  • Dan

    It works well to keep the novice out. For added security, rename the ‘Locker.bat’ file to runtime.bak, then move it out of the folder to the root. this way any spies would see just an empty folder, nothing suspicious

  • Joe

    to bypass just right click the folder and click edit, change the password and log onto it

  • Manoj

    i want to create a passwortd in rar filr or folder .
    pls give me answer…

  • emma

    it only hides but doesn’t protect

  • Mahmood

    right click on folder or anything you want to protect,
    then choose “add to archieve”,
    the from the new window appeared click on “set password”,

  • danny

    its easy create one file for your private stuff then place that and the other things needed into another private file

  • bacha

    Mahmood sir.this folder can delete easily what is the way to secure it from deleting in other words
    Mahmood bahi ye folder delete ho gata ha kia ho sakta ha ka isa bachaiya gai bara bhai delete kar dete hain

  • bacha

    put files into private folder and just lock enjoyyyyyyyyy……….

  • bacha

    press y

  • VirusWar

    Same here, worked w/out a problem!

  • Ronin_84

    I see this same bullsh^t everywhere, copy and pasted from other sites —- you are so f^^cking unoriginal. This bullsh^t is also insecure because it doesn’t hide your password as you are creating it and only HIDES the files – I CAN STILL ACCESS THEM! What a f^^king pathetic lie of a “Password Protected Folder.”

  • Ronin_84

    Bullsh_t. Anyone can simply unhide hidden files and everything is visible. This is such a BS method.

  • Ronin_84

    I guess you’re too stupid to see what he wrote about “Its not working.”

  • medidi

    when I click the bat locker.bat it hide the private folder but come up an other folder call control panel containing the files that in the private folder please help

  • Pulasar

    Why are you using such vulgar hateful immature sick language just because you don’t like this folder. Is there something wrong with you. Please see a doctor asap.

  • Ronin_84

    “Sick language?” “See a doctor?” Are you a ret@rd O_O?! – rhetorical question. You need to see a doctor if you can’t handle it — GET BENT!

  • anthony

    dude just chill geez…if you dont like thenwhy bother?

  • Ronin_84

    You’re not contributing anything. If you don’t have anything to useful to say, they why comment? — Useless brown-noser.

    I, however, have every right and reason to point out a sham. I also have every right to respond to comments made to me, YOU are just sticking your nose where it doesn’t belong.

  • Ronin_84

    “Do you look for things you don’t know exist?”

    If I’m looking for hidden files on someone else’s computer, then “Yes.” It’s very easy to turn off hidden files and folders, it’st the first thing I do when I set up any pc. To feel a sense of security just because you set a file or folder to “hidden” is absolute stupidity.

  • saad_chrifi

    thanks it worked :)

  • George Honki

    how to del the this folder

  • Roy Franks

    grow up kid…It is to protect from people that have no idea what they are doing like you,,,,if you knew what you where doing you would need this! this is just to protect your files better than leaving them opened and only a skilled user would try to edit the code and look for the password. calm down…this does its job well

  • Dudy Bug

    i dont work good on win8

  • Ahmad Nagi

    You can delete the folder by deleting the text.Bat icon.

  • Ahmad Nagi

    I think there was a problem while making this steps, Try again doing steps again for the first time to you and feedback me.
    Specifically the typing/coping way of the code.

  • Ahmad Nagi

    You can just hide it.

  • Shan Ahmed Shaikh

    this is not secure…. i did all thing, and it goes right, what ever u say. but when i use search the files, from startup menu, it shows me all files,

  • gsgsg


  • Kirilas Lukjančenko

    man if u so critical and tuff create something better gush genius make site and be papular o.O why need being so rude….

  • Bub Bu

    “I also, I have, I do, I am, I… I.. I…”
    Just give this world a favor, kiddo – STFU u ‘lil piece of sh*t.
    I am sick tired of such a genetic garbage like u.

  • pradeeban pradee

    THANK YOU SIR……………………………………………Shan Ahamed Shaikh when you double click the locker.bat and click Y in command prompt after you close the private folder,it make it unvisible to computer search Try it and leave your comment

  • amit

    me too the same

  • Akib

    thank a lot for real discription.

  • Aji Galicinao

    how to change the password ?

  • samar

    i made this step and now i can’t access any file from the ones which are at the same folder and i can’t discard any of the changes done even when i changed the windows
    how can i restore my files back

  • Ronin_84

    I guess instead we should talk about you… that’s a good idea! I have no reason for me not so use those words, they are parts of BASIC HUMAN SPEECH. I haven’t attacked anyone here like you, and yet here you are with your tiny-dick-roid-rage, throwing out profanity like a little kid throwing a tantrum. It’s evident that YOU are the real gutter trash here, yeah, YOU should be one to talk! You have some serious problems, little child. Go bang your head against a wall, I’m sure you’re good at that — and not much else.

  • Yoga Perkasa Hadi


  • Umme Chand

    Unfortunately I did not change PASSWORD_GOES_HERE these words but typed Y and click i can not access to my protected file.So what should be done now?

  • Dragoslav

    just type PASSWORD_GOES_HERE insted off pasword :)

  • Umme Chand

    I did this but no positive impact

  • Shehan

    Just edit the BAT file by right-clicking it and selecting “Edit”. It’ll do the trick :) and go to where you need to change the password.

  • tony

    A M A Z I N G

  • Ho

    How to hide the .bat file then?
    When i right click the locker.bat,
    it just appear my password inside the notepad.

  • Zara

    amazing it totally works!

  • Zara

    How about you fix up, because frankly we have the right of freedom of speech but you are one of this disobedient people who misuse it and you don’t personally know these people so they are are ones to talk.

  • Titanicjohn peter

    Perfectly Working but edit option is enabled.
    Suppose if Editable option is enabled Other user Can change the password.
    That is hacking so how can disabled edit able option in locker.bat only Suppose if you can’t try it other code

  • Sabs

    Thanks a Lot!! Superb

  • jth

    nice! but if I right click the file and then edit file, I can still get in because you then get the normal text file with the password showing…

  • bhima j

    its geunie work good

  • Pokemaster1313

    This is a really good way to protect stuff

  • Meep

    Well someone fed the troll.

  • Nurarihyon No Mago

    it does protect from curious people :D

  • kristine

    I tried it and it worked my folder was now private but as i open it again the private folder was there but my files was gone. please help how o retrieve.

  • Ronin_84

    I’m disobedient?! Not very smart, are you? Freedom of speech is not about being obedient, it’s about saying things EVEN IF YOU DON’T LIKE THEM.

    “they are are ones to talk.” Again, you stupidly talk about what you don’t know. You don’t know what the idiom “you should be one to talk!” even means.

  • Oli

    You can just right click on the locker.bat file and select edit with notepad++ to see what the password is.

  • Peter Ajewole

    You are just too good. I tried your procedure and it worked perfectly. Thanks.

  • Monica

    Thanks for sharing! I am using a software called Lock My Folders. Work as similar as your trick, but it will also encrypt the files on the fly.

  • Sneha

    Cool !!!!
    It made easy not only to secure data but even to hide it…

  • nitanshu kumar singh

    really….. its very hlpfull for lock the personal folder

  • vijay negi

    what if i delete the lock folder

  • Bernard Fearless Pestaño

    How to hide the password while typing in command prompt?



  • Husnain Kazmi

    Someone could comprise the folder is to open the batch file and read your password to Right-click on the locker.bat file and choose Edit. It’s definitely not a really secure way to hide your files.

  • Ahmad

    u can simply rename the batch file to .txt and rewrite the password xD
    it’s not that secure if u know smth about batch files

  • Kundana

    superb! It’s working a lot but how could I change the password

  • eddy

    ha ha ha true

  • Funkist

    It only puts the folder as Hidden. no protection there..none!!! go Folder Options and check Show Hidden Files and you’ll see your Folder under a somewhat different name but when opened you have access to everything. Fancy Way to put folder as Hidden.


    How Can I change the password of Locker

  • Demonic soul

    Mine don’t have the Folder Options so it’ good

  • AS Rao

    Hii have tried this its really good, but while doing so I had a doubt and dleted the Locker file, and got simply deleted.
    What if, some one else delete the Locker.bat file, do we loose complete folder or any way we can still retrieve them

  • Saad Mirza

    I By mistake deleted the .bat file when my private folder was disappeared. how can I get my disappeared file back? it had some important data in it!! :-|

  • I need a folder password lock

    so basically you just system hide the folder instead of really prevent people double click it and prompt for password?

  • Jassem Ajili

    I tried a false password yet the folder was unlocked.

  • cyka

    Just right-click and hit “Change”. You’ll see the text file and then you just need to change old passwodbsartsrd to new passwodbsartsrd!

  • glass

    this keeps failing once I fill the file with documents. how do I fix it. Will not let me lock. On windows 7. Odd but this used to work but now it doesnt and I’ve tried remaking the file.

  • Shahid Sabri

    i have experiment now , after delete the locker file, i made new locker file with same password in the same folder where i have lost my files folder , and open the locker file with previous password, and my hidden folder come back,, u try ,, if there is any difficulty so u can call me 0313-6352858 , m from pakistan

  • Nikunj Gami

    I have completed it successfully. But one thinh that needs to be improved is password should not be shown while entering. It soulld be in * form. If that can happen then it is perfectly fine.

  • SAEM

    i made a lock folder and its worked but now i connect my external hard again but now its show private folder empty so what to do now.
    please tell me any how can i view my folder.

  • saem


    i made a lock folder and its worked but now i connect my external hard again but now its show private folder empty so what to do now.

    please tell me any how can i view my folder.


  • Michelle

    this is cool:D

  • Kyle

    …. Someone can easily right click the .bat file and find the password… lol

  • saem

    i made a lock folder and its worked but now i connect my external hard again but now its show private folder empty so what to do now.
    please tell me any how can i view my folder.

  • vilpiri

    You should compress the file into an .exe file after making the password to make sure no-one can find it out

  • Slayer Golem

    i just made the .bat file but when i put in Y when they asked, it said that access is denied, any idea why?

  • Ramnath Shodharthi

    I am putting the password correctly but not able to retrieve the private folder..what to do?..please someone help me….Thanks

  • Sirius

    file get hidden. But when we change to show the hidden files , folder gets up by name “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”. when i open it it shows all the data. Foolish idea.

  • LavKush Pandey

    how to recover password if u forgot ?

  • Rohan C

    Hey there! What language is the text document written in?

  • Garry Pitpitan

    what a dumb head you all have.just do what the procedure given to you by uploader and thats it it works fine dude.its simple procedure!!!!1

  • jollku

    thank you

  • Pingback: How To Install Windows 7 In New Hp Laptop | Best Laptops()

  • ignore

    the folder is renamed ” controlpanel bla bla” and hiden in the same directory (folder). you don’t need a pasword to open the files.

  • my

    read what you put in the text file. you have the answers… this is a joke…

  • Supun Bandara


  • WatchZ

    Right click on bat file then press “Edit”

  • WatchZ

    if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
    echo Are you sure you 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
    ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    echo Folder locked
    goto End
    echo Enter password to unlock folder
    set/p “pass=>”
    if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
    attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
    echo Folder Unlocked successfully
    goto End
    echo Invalid password
    goto end
    md Private
    echo Private created successfully
    goto End

  • WatchZ

    This works just on windows 7 & 8 so if you have WinXP it dosn’t gonna work

  • WatchZ

    If you delete that folder when you start bat file it would create new one

  • Sundram

    Its a Batch File language and it is written in notepad with .bat extension. Understand…….

  • Sundram

    So tell me how to open that folder genius.

  • Sundram

    Just open the bat file in which you have entered the code and search for:
    if NOT %pass%==
    and then after == see the password and that will be your password.
    E.g. , if NOT %pass%==1323 then your password will be 1323 &also watch out for spaces.

  • Sundram

    It will not work in external hard drives or chips or pen drives. As control panel’s folder vary from computer to computer. Also if you had formatted your computerame thing will appear that is folder is empty.

  • Sundram(

    Its easy restore that bat file form recycle bin.

  • Sundram(

    Its a way to retrieve them, i.e. , just make the same bat file with the SAME CODE and PASSWORD, then open it & use it………EASY……….

  • Sundram(

    It is explained above.

  • Sundram(

    In the above code, replace the key PASSWORD_GOES_HERE with the password you want to use to unlock the folder. For example if you want the password to be 123456, the line should look like:

    if NOT %pass%== 123456 goto FAIL

  • Sundram(

    Right-click on the locker.bat file and choose edit and see for password after the line if NOT %PASS%==……………..

  • Rachel Loo

    how to change password?

  • supun loo

    why is it showing duplicate……?

  • Zenta Amani

    this is useless method..because why, when bat file is created you try right click on it and click edit after that your password and another text will appear

  • Nematullah Chandio

    I have done it and it worked, but as I installed new WINDOWS it does not play my videos and gives this message:

    Windows Media Player cannot access the file. The file might be in use, you might not have access to the computer where the file is stored, or your proxy settings might not be correct.

    Please help me come out of it..

  • Wajid Hussain Khoso I

    Listen Guy how to hide the Characters of password in bat file ??

  • Gaurav

    rubbish method anyone can access ur folder by changing ur password by editting the .bat file

  • Smile

    thank you very much learn me something good .

  • d00kes

    Absolutely no protection, easy to get past the locker and all files show up in start menu search. Pointless…..

  • gurvinder singh

    open bat file

  • fede

    thanks a lot man

  • yash bhargava

    this works for me! thanks alot :)

  • Ivan

    you’re supposed to delete the text file afterwards, so there only should be the locker thing

  • Sabrina Cristi

    I can not seem to get this to work. I followed the steps up until where you get the folde named as private. Then i’m stuck (because the private folder isn’t showing up.) I think it might be becuase the text document isn’t saved as a .bat file, but i’m not entirely sure. IF that is the case how can i save it as a .bat file?

  • Logan Connor

    mine just changes the name
    can someone help me

  • Alex G

    Hello, it workes great, BUT if I go to toolsfolder optionsviewhidden files and foldersShow hidden files, folders, and drives -> then returns me the folder like an invisible and i’ll have the same acces whitout password :)
    Kind regards,
    Alex G. from Romania

  • VK

    Deleting the locker.bat makes it more secure. Just preserve the batch program code somewhere and remember the password
    When you have to see the private folder, just create the locker.bat once again (following the same steps and entering the same password)
    More secure way!

  • Ishmal Jutt

    There’s no doubt, As Windows 7 is the most recommended OS, Which through user can do almost all work without any problem, Where I recommend you to activate your OS being purchased its license code from ODosta Store
    Which is distributing license for almost all types of Microsoft Products. I personally use it and have a good experience.

  • Hari Krishna

    any one can change the password by editing file

  • Bob

    but you can still right click–>edit the batch file and see the password


    rename folder control panel bla bla bla

  • hrishikesh

    everything would be visible if you search with *.* . it shown in folder named ‘control panel’

  • sushant

    if you just do this ” show hidden files and folders” the private folders is seen

  • sanjay kumar

    password padne ke baad bhi folder run se search karane ke baad bhi khool ja raha hai

  • Dipika Nagtilak

    thank u so much..i done this by following above steps..


    When copied the suggested macros, by mistake I didnt copy “goto FAIL” after the place to change the password. I created the Private folder, copied my files. Now I am not able to retrieve back my files. Suggest me what to do?

  • Kishan Vyas

    Thank you so very much. It works flawlessly…

  • Dhamodhar Reddy

    I have followed all the steps given and successfully created the password.. I kept all the date in the private folder long back ago.. Now I am trying to open that batch file it is showing “Windows cannot access the specified device, path, or file” error when you try to install, update or start a program or file”.. Could you please help me how can able to access this private folder again.
    Thanks in advance

  • apfoaw3829

    That’s right. We can’t make a Password Protected Folder.

  • dudel

    works but when you click on locker once, text comes up on right hand side preview window showing code how to unlock it. am i doing something wrong??

  • Vincent William Rodriguez

    woow,this actually works!!

  • Myrna Taylor

    convert it to an .exe file