3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Mega Folder Locker

Mega Folder Locker
«
  • in action.jpg
  • location.jpg
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.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Making The File

Making The File
«
  • notepad.jpg
  • the file.jpg
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
:begin
echo.
echo please type the password please...
echo.
echo =) you have as many tries as you want =)
set /p passcode=">"
if %passcode%==%password% (
goto right
)
goto wrong
:right
echo that is the right password!!
pause
start "your destination here"
goto exit
:wrong
echo
echo =( in sorry that is the wrong password =(
echo
pause
goto begin

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

« Previous StepDownload PDFView All StepsNext Step »
31 comments
May 4, 2011. 7:54 AMblakexz13 says:
simple fix for this problem
1. put password in the file
2. convert to exe
Mar 3, 2011. 12:48 AMlove2make says:
wait so it makes it password protected but whats the password
Feb 10, 2010. 9:12 AMjack the ripper says:
i like it
Mar 18, 2009. 11:57 PMjchar77 says:
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
Jul 24, 2009. 7:55 PMwizerd 745 says:
Just convert it to .exe
Jun 6, 2009. 12:47 PMDELETED_DELETED_DarthVader says:
(removed by author or community request)
Jun 6, 2009. 5:03 PMRedFlash says:
Yeah like attrib +s +h The file here?
Still all you have to do is change the view options
Jun 14, 2009. 10:04 AMDELETED_DELETED_DarthVader says:
(removed by author or community request)
Jun 28, 2009. 6:46 PMRedFlash says:
Any good Computer geek/hacker would know that
May 4, 2011. 7:53 AMblakexz13 says:
what did DarthVader say??
May 10, 2011. 7:05 PMRedFlash says:
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.
May 11, 2011. 5:14 AMblakexz13 says:
thanks
Jul 1, 2009. 10:43 PMerikals says:
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.
Jun 6, 2009. 8:31 AMPyRo_RaPiD says:
I made one of these with 3 tries to get the password... and if you dont a batch alarm gos off... inside the hard dive not the speakers and it oepn this file hundreds of times so you cant close it. three file work together to make this work lol
Mar 24, 2009. 8:24 PMFoaly7 says:
This doesn't work.
Apr 14, 2009. 8:50 PMjchar77 says:
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
May 9, 2009. 7:58 AMwizerd 745 says:
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.
Apr 28, 2009. 3:59 PMFoaly7 says:
No, I mean the batch file Does Not Work at all. I tried it and it did not work. At all.
Jul 24, 2009. 7:56 PMwizerd 745 says:
turn echo on, find out where it messed up
Jul 18, 2009. 11:05 AMphunguy123 says:
u did something wrong then , cause it worked fine for me
Mar 3, 2009. 2:01 PMupdown789 says:
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 :)
Mar 22, 2009. 9:28 PMArbitror says:
But then, they view that batch file, and instantly know where the other batch file is, then knowing the location of the passwords.
Feb 12, 2009. 8:05 AMupdown789 says:
hey i made this ages ago I remember, it wasnt easy to create gd job !
Jan 22, 2009. 6:14 AMtheknight says:
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.
Jan 3, 2009. 10:28 PMjchar77 says:
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.
Dec 28, 2008. 2:59 PMSir Maverick says:
So how does this work? Which folder does it lock?
Jan 1, 2009. 11:34 AMJa2Pc says:
Umm never mind it worked Thanx man :D
Jan 1, 2009. 11:31 AMJa2Pc says:
Hey man this doesnt work!
Dec 29, 2008. 2:05 PMSir Maverick says:
Thanks! Good Work!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
3
Author:Psychic Master