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

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

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:
<p>Pretty nice. </p>
<p>what is its password</p>
wait so it makes it password protected but whats the password<br>
The password is whatever you want it to be (see step 3)
simple fix for this problem<br>1. put password in the file<br>2. convert to exe
i like it
This doesn't work.
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
No, I mean the batch file <em><strong>Does Not</strong></em> Work at all. I tried it and it did not work. At all.<br/>
turn echo on, find out where it messed up
u did something wrong then , cause it worked fine for me
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.
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
Just convert it to .exe
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.
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 :)
But then, they view <strong>that</strong> batch file, and instantly know where the other batch file is, then knowing the location of the passwords.<br/>
hey i made this ages ago I remember, it wasnt easy to create gd job !
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.
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.
yes but you could password encrypt the password text file and it should still work, it worked for me.
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 <em><strong>your destination here</strong></em> <br/><br/>such as C:\your folder here<br/>in the place of your destination here <br/>just rember no quotes.<br/>
Umm never mind it worked Thanx man :D
Hey man this doesnt work!
Thanks! Good Work!

About This Instructable




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