You are on page 1of 15

How to Create a Password Protected Folder without any Extra Software

Published on February 20th, 2012 | Written by: Taylor Gibb

There are a lot of methods that you can use to create a password protected folder, most of which require the use of some third party software. Using this neat method you can hide your folders with a quick batch script. It’s important to note that this will not actually conceal your data from somebody that knows what they are doing.

Create Your Password Protected Folder
Before you get started you need to create a folder that will house your password protected folder, this is just an ordinary folder and can be located anywhere and named anything.

This can easily be done from the context menu. Open the document. now paste the following code into the contents of the document: cls @ECHO OFF title Folder Private if EXIST "HTG Locker" goto UNLOCK if NOT EXIST Private goto MDLOCKER :CONFIRM .Navigate into your newly created folder and create a new Text Document.

Once the file is saved as a batch file you can delete the original text file.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 :LOCK ren Private "HTG Locker" attrib +h +s "HTG Locker" echo Folder locked goto End :UNLOCK echo Enter password to unlock folder set/p "pass=>" if NOT %pass%== PASSWORD_GOES_HERE goto FAIL attrib -h -s "HTG Locker" ren "HTG Locker" Private echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Private echo Private created successfully goto End :End Change the PASSWORD_GOES_HERE text to the password you want to set.bat. . Now go ahead and save the file as locker.

press the “Y” key and hit enter to lock your folder. . This time you will be asked if you sure that you want to lock the folder.Now run your batch file by double clicking on it–the first time you run it.bat again. When you have finished adding all your stuff to the Private folder. it will create a folder called Private. This is where you can store all your secret things. run locker.

you will prompted for a password. If you run the script yet again. .You will see that your Private folder quickly disappears.

Also. but anybody who has some experience will probably be able to quickly figure it out in the Folder Options.If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate. Warning Most people don’t know how to show system files. any ordinary user who unchecks the box will most probably be scared off by the warning message that appears. .

Viraj says: February 20. contact us and we’ll adjust the article accordingly. 3. . It’s definitely not a really secure way to hide your files.The second way someone could comprise the folder is to open the batch file and read your password. If you do have proof that you first created the script. press the “Y” key and hit enter to lock your folder. Albert says: February 20. dude says: February 20. 62 Responses 1. When this was asked I entered Y. We have no idea who first created the script. Mirso says: February 20. And a new file of size 0 byte was created in same directory and folder is still visible. 2. Attribution note: We found this script on dozens of different web sites going back many years. 2012 at 10:01 am I can not create the Password Protected Folder 4. And there was an unexpected error notice. It did not disappear as expected. 2012 at 10:08 am This is very lame . but it is fun. so we’ve omitted any sort of attribution link. 2012 at 8:51 am There is the possibility to create an executable out of the BAT file through certain programs (Google search for bat2exe or bat2com) – this way the password would not be able to be read out easily. 2012 at 10:00 am Error ! >> This time you will be asked if you sure that you want to lock the folder.

It creates this file ö instead.bat it does ask me if i want to lock folder I select Y and then it closes but it creates another File like this o. jz says: February 20. emma says: February 20. 2012 at 10:43 am Seems like we all having the same problem. the 2 periods are on top of the o any one got any ideas thanks 10.. 2012 at 10:32 am I believe this is very bad practice and offers no real security Maybe only useful from hiding porn from the wife! Would better to have do a lesson on batch files rather than this lame example 9. Taylor Gibb says: . Lee smith says: February 20. 2012 at 10:26 am Does not Work 8. 12. john says: February 20. 2012 at 10:13 am i also have the problem viraj said 6. 2012 at 10:34 am I am getting the “0″ fault – applicable to others here. nirmal says: February 20. 7. 2012 at 10:36 am I get the same result as Viraj.5. Keith says: February 20. gsrowens says: February 20. 2012 at 10:15 am doesn’t work with my Windows Home 7. so what is the solution???? 11. Please help 13. 2012 at 10:33 am Win 7 64 bit I tried like 5 times now the private folder wont disappear Don’t know what I am doing wrong when I click on locker. Frank says: February 20. Doesn’t seem to work for me in Win7 Home.

put all your notes in a file and under “save as”. 2012 at 10:50 am Hey guys. jp says: February 20. jasray says: February 20. 16. 2012 at 1:53 pm Guess it would be pointless to simply zip the folder. maybe encrypt. i have testing it using some piece of software and found that has cracked this type of security. 19. and thanks! Great on a thumb drive.. sandeep says: February 20.t so stupid way 18.February 20. 2012 at 11:01 am It worked! Yay! Thank you! 15. . “General Options” and assign the file a password. i have retested it and its working on Windows 7 Ultimate x64. tell me the exact errors you get if it still doesnt work and ill try help you out. 2012 at 11:43 am Its working. 2012 at 11:13 am I just did it by going to command line (cmd) and running the batch file from there. Don says: February 20. 2012 at 12:49 pm You can use MS Word. everyone can open and see it 20. Bill says: February 20. i just rewrote the script and updated the article. qwer says: February 20. 2012 at 1:27 pm the password is located in the bat file. Simple. but may not be much secure. Katina says: February 20. 21. 17. 2012 at 1:42 pm Quite babyish! Can access the hidden folders by Windows Folder Options. 14. click “Tools”. mayasl says: February 20. Works fine. 2012 at 12:28 pm s.

Aaron says: February 20.22. to those of you saying you cannot use on Win7 Home. I can imagine some people storing it’s passwords or other sensitive info this way.7z format with AES-256 encryption. A simple highlight and start typing your password will suffice. Doreen says: February 20. From the screenshots it looks like you used either Vista of Win7. MJ says: February 20. 26. I would recommend using 7-Zip’s . but think this is dangerous and should NOT be done. encrypting a zip file would probably (surely) be easier and safer. please give us the OS that this works in. 7 Home. Rakesh 619 says: February 20. I know you warned them. 23.bat file by dragging . so that anyone could get it. 2012 at 2:55 pm Hey guys.bat too. 2012 at 2:45 pm What OS does this work in? I tried doing this in Windows XP Pro and it did not work. 2012 at 3:29 pm This is Awsome! How incredibly easy to set up and use! 27. or using their only password in the . 2012 at 3:09 pm My Windows 7 setup: I use WinRAR on my seldom accessed files/folders to create a RAR or ZIP file with password encryption. as it may create a falsesecurity expectation to someones.bat into new text file . . As it has been said. 2012 at 3:30 pm i agree with this tips but we can easily extract password from . 7 Pro and 7 Ultimate. Try deleting only the “PASSWORD_GOES_HERE” with no spaces in front or after. 25. 24. nonosh says: February 20. I store them in an external hard drive — or a flash drive — with BitLocker password encryption on the entire drive. I have tried this on Win XP. Happy hunting. I was able to recreate the issue you are having. maybe this will help. Wolf says: February 20. For frequently accessed files. 2012 at 2:12 pm I don’t think it is a good idea to teach this to anyone. So this tips not be security its just way of hiding files.

keep it coming always forever!! dear get your own website. bluelord says: February 21. 2012 at 6:09 pm Wouldn’t Alternate Data Streams be a better way to hide files? I think so. For petes sake ease up and get the chip off your shoulders 30. criticize the hell out of it and leave us poor uninformed startup geeks alone!! yours 35. It is good enough for the dasual snoop. HTG does it again!!! I mean the kind of stuff you learn here is in a whole different level in geekdom… you guys really rock in sharing such stuff. Janey B. and it’s great I found your blog 29. I’ve been interested in this for quite some time. however he DID say that it wasnt totally secure and also mentioned at the end it was just for fun. 2012 at 4:53 pm For the nay-sayers you are right . emar1000 says: February 20. btria says: February 20. 2012 at 12:40 am . 2012 at 12:30 am its a snazzy utility. 2012 at 5:37 pm It worked fine for me. well written short and neat program. Galahad says: February 20. 31.Smith says: February 20. Ochinowa says: February 21.bat. 32. works well even in windows7. freq says: February 20. 2012 at 4:26 pm Thanks for the info.. The obious pitfalls is the slection of the parameters. 2012 at 11:42 pm It worked perfectly fine on my Windows 7! Thanks :) 34. Win XP. 2012 at 8:26 pm It’s working. although i dont know wat wil hapen when some1 wil delete my locker. maybe some of u just missed something. Frank Verano says: February 20.28. 33.

. you can access the files. its not even protected but only hidden. but now I am happy for the development. 37. even if the author was trying to teach some elementary kids .It runs perfect on Vista! Great! 36. 40. kenedy12345 says: February 21. 42. 2012 at 6:39 am The trick worked fine… thnkzz. 2012 at 6:16 am it was successful in creating the batch folder but couldn’t open my folder after hiding it. qwertyui says: February 21. Abhijeet says: February 21. Bauleni Chioza says: February 21. 2012 at 4:43 am Good to know about the How to Create a Password Protected Folder without any Extra Software 38. this is a really stupid practice. but not a reliable trick. Deej says: February 21. 2012 at 12:15 pm have to say. 2012 at 11:55 am works for me. thanks 43. the folders and files were just hidden and renamed but if the show hidden and system files are ticked. it’s really fun 39.:) 41. keitre says: February 21. using windows 7 home 64 bit system. Zipping a folder and encrypt it with a password is better. 2012 at 4:23 am its not really a lame but a simple hiding folders. eric mbithi says: February 21. 2012 at 6:03 am Thank you. any way thank you for the lessons. Baback says: February 21. 2012 at 10:44 am I was frustrated when thinking that some one will access secret information. don’t say i forgot the password coz i tried for 3 times but just couldn’t work.

2012 at 12:21 pm I just tried this cool little trick and it works great on my machine I love it. . both works fine. http://en. 2012 at 6:08 pm A lot of CMD/batch stuff doesn’t work on Vista or above. 2012 at 9:44 pm Easier to just run Linux instead of Winblows and encrypt your entire Home directory. Frank says: February 21.org/wiki/IExpress 47. 2012 at 4:38 pm works fine :D thank you !! 48. The passwd should not exceed the space than this words in coma. try again. JeffS says: February 21. 2012 at 1:30 pm Nice works really well Thanks!! From Thomas Franklin 46. Make sure when u type passwd by replacing “PASSWORD_GOES_HERE” in the script. . make sure do not leave any space before or after. which is likely already included in your version of Windows. thanks howtogeek!!! 5 stars 45. fani says: February 21. Trusrt me it is easy. I have learned many things from you guys .exe. D: that’s why I like xp 49. I have done with Window 7 and XP. wrussf says: February 21. 2012 at 3:08 pm FWIW. c j says: February 21. 2012 at 8:15 pm follow the step and u can not go wrong. sam says: February 21. Victor says: .wikipedia. 51. 2012 at 11:18 pm Thanks for the tip(s). .44. Thomas Franklin says: February 21. Good luck 50. 52. Russ says: February 21. you can make an executable file from a batch script using iexpress.

) :) 55. 2012 at 8:26 am Or you could use TrueCrypt..But whn “Show all hidden folders” is given it falls apart :D :) But theres an alternative way to hide your folder (windows XP).. attrib +s +h This will hide your folder and will not show up even if u hv selected “show all hidden folders” 3. 2012 at 12:31 am I think it could be editable clicking the right mouse button and selecting edit option. Run (window+r) 2. Joe says: February 22. 2012 at 2:48 pm work perfectly-my Os-win-7 57. Now to bring back the folder attrib -s -h I believe most of u ll b knowing…. creatgr8 says: February 22. read this part at then end of the article …”It’s definitely not a really secure way to hide your files.It was never intended to be a secure. Joe says: February 22. 58. 1. but it is fun” . Tried it out and its workin fine…. Stupid South African says: February 24. 2012 at 7:53 am Hi. It’s a bit of FUN !!!!! 54. may would be a good tool for those people who doesn’t know so much about PC’s or some programming notion. 2012 at 7:59 am follow up of previous comment attrib +s +h filepath attrib -s -h filepath 56. and this at the start of the article “It’s important to note that this will not actually conceal your data from somebody that knows what they are doing. 2012 at 9:43 am . 53. Tony says: February 22. 2012 at 4:11 am To all those slagging this off….Anyways Sharin is Caring rite . Dale says: February 23.”….February 22. with this can change the password easily.

com 59. its a fun exercise. D999 says: February 24. they state that it is not very secure. 2012 at 3:56 am For more information on How to Create a Password Protected Folder without Extra Software you can go through the below link and here you will get the all details: 61.You can add some registry tweaks in there to modify checked values and default values in super hidden and hidden files within explorer tab in the registry If you have trouble doing it mail me at 3lit3sss@gmail. 2012 at 11:33 am Works Great! Have Windows 7 and no issues love ! 60. My boss was born in the fifties and he can’t figure out a thing. . So until I find a geek boss am cool with this 62. 2012 at 8:16 am Well it works fine for me. so stop bitching about it. 2012 at 2:25 pm sheez you guys can moan. Ashwath-Shetty says: March 1. platsak says: March 6. miyanda says: March 3.