Introduction: Mega Folder Locker

Picture of Mega Folder Locker

this instructable is on how to hide files behind a password with a batch file..,
thecatch is that the password is loaded into the batch files through a free-standing text file.

and please rate this instructable.

Step 1: Making the File

Picture of Making the File

first open notepad
either open the run box and type "notepad.exe"

or click start then goto all programms
then to accessories and finally click on notepad.

then type in:

@echo off
set /p password= <password.txt
title Folder Locker
color C
echo please type the password please...
echo =) you have as many tries as you want =)
set /p passcode=">"
if %passcode%==%password% (
goto right
goto wrong
echo that is the right password!!
start "your destination here"
goto exit
echo =( in sorry that is the wrong password =(
goto begin

after you copy that save the file as "anything".bat

Step 2: Making a Password

Picture of Making a Password

open notepad again, type in anything you want for a password.

===then save the file as PASSWORD.TXT===

::::::yes you must do this or the batch file will not work::::::
also make sure that the two files ae in the same directory (folder)
but if you want to move this file you must change part of the batch file...

and password.txt

now right click on the password file and pick properties, then click on the box "HIDDEN" and apply to the file you should now notice that the file is now un-seeable and cannot be spied on.

Step 3: Finish

now that the two files are there all that you have to do
is run them and hope you did everything right =>

here are the files in case you cannot find notepad:


Blurryface21 (author)2016-04-29

Pretty nice.

yared40 (author)2015-09-20

what is its password

love2make (author)2011-03-03

wait so it makes it password protected but whats the password

Prof. Pickle (author)love2make2012-08-10

The password is whatever you want it to be (see step 3)

RedFlash (author)2009-06-28

Any good Computer geek/hacker would know that

blakexz13 (author)RedFlash2011-05-04

what did DarthVader say??

RedFlash (author)blakexz132011-05-10

Absolutely no idea.....
I think he was going off about the fact that

attrib +s +h

does not "lock" the folder. It merely hides it.

blakexz13 (author)RedFlash2011-05-11


blakexz13 (author)2011-05-04

simple fix for this problem
1. put password in the file
2. convert to exe

jack the ripper (author)2010-02-10

i like it

Foaly7 (author)2009-03-24

This doesn't work.

jchar77 (author)Foaly72009-04-14

You're right. It doesn't work. If i wanted the password, I would right click on the batch file and then click edit. That would display the internal workings of the file and it would take me seconds to find the password

Foaly7 (author)jchar772009-04-28

No, I mean the batch file Does Not Work at all. I tried it and it did not work. At all.

wizerd 745 (author)Foaly72009-07-24

turn echo on, find out where it messed up

phunguy123 (author)Foaly72009-07-18

u did something wrong then , cause it worked fine for me

wizerd 745 (author)jchar772009-05-09

Also you could just find the directory even if you get the password wrong, it's pretty pointless but i've made something like this with the password internally stored, but not able to be changed without editing.

jchar77 (author)2009-03-18

One little problem. What if the person who is looking for the "Files" opens up the file called password. (I would call password.txt something a little less obvious. And even if they didn't open password.txt, they could just right click on folder locker.bat and then click edit and then that would display the internal workings of the file, so therefore they would see the direct path to the password container. To improve security, download Batch to exe converter, so then the person wouldn't be able to look at what is inside the file. Good Try! lol

wizerd 745 (author)jchar772009-07-24

Just convert it to .exe

erikals (author)2009-07-01

This is really cool, I've tried this on a couple of computers I was rebuilding after each of them succumbed to a virus. Great 'ible.

RedFlash (author)2009-06-06

Yeah like attrib +s +h The file here?
Still all you have to do is change the view options

updown789 (author)2009-03-03

I worked out how to get round the changing password - create A NEW batch file that goes like this: @echo off title loading echo Loading ping localhost -n 5 >nul call (insert the name of your locker file along with the file extension) Now just set the locker file to hidden and if they go to edit, all theyt will seee is the loading file... oh btw i didn't think of this idea all by miself so if u wanna take credit, by all means do that :)

Arbitror (author)updown7892009-03-22

But then, they view that batch file, and instantly know where the other batch file is, then knowing the location of the passwords.

updown789 (author)2009-02-12

hey i made this ages ago I remember, it wasnt easy to create gd job !

theknight (author)2009-01-22

Ok good use of batch btw! but yes you could just 'right-click' 'edit' but this can be overcome by converting to executable. also, what stops me just opening the txt file and reading the passwords? and just clicking on the actual folder instead of the batch file? unless its to stop yourself from going in (i.e. virus vault of a file with dangerous batch files in it) then batch locking passwords don't really work i'm afraid.

jchar77 (author)2009-01-03

I can see a major flaw in the whole batch password protection thingy. Someone can just go right click and edit. That displays the internal workings of the protection. all they need to do is find the password and the locker is useless.

Psychic Master (author)jchar772009-01-04

yes but you could password encrypt the password text file and it should still work, it worked for me.

petercertik (author)2008-12-28

So how does this work? Which folder does it lock?

yes it works and it can lock any folder you want just type in your destination where it says your destination here

such as C:\your folder here
in the place of your destination here
just rember no quotes.

Ja2Pc (author)Psychic Master2009-01-01

Umm never mind it worked Thanx man :D

Ja2Pc (author)Psychic Master2009-01-01

Hey man this doesnt work!

Thanks! Good Work!

About This Instructable




More by Psychic Master:Megafile Update 2010My CoilgunMega Folder Locker
Add instructable to: