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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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
: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

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...

"anything".bat
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:

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    30 Discussions

    0
    None
    RedFlashblakexz13

    Reply 8 years ago on Introduction

    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.

    0
    None
    blakexz13

    8 years ago on Introduction

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

    0
    None
    jchar77Foaly7

    Reply 10 years ago on Introduction

    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

    0
    None
    Foaly7jchar77

    Reply 10 years ago on Introduction

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

    0
    None
    wizerd 745jchar77

    Reply 10 years ago on Introduction

    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.

    0
    None
    jchar77

    10 years ago on Introduction

    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

    1 reply
    0
    None
    RedFlash

    10 years ago on Introduction

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

    0
    None
    updown789

    10 years ago on Introduction

    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 :)