Instructables
<>

Hi, I'm new, so don't get cranky if I stuff it all up. This Instructable is much better than all of the rest! This method uses batch to hide files. The hidden files are completely search-proof. (i.e even if you search for them, no results will come up.)
 
Remove these adsRemove these ads by Signing Up

Step 1: Creating the program

O.k. Open up notepad. Copy the following into notepad:

@echo OFF
title Super Hidden Files Creator - By James

echo Password...
set/p "com=>"
if %com%==unlock goto ALLOW
echo WRONG!
pause
echo Choose Your Fate...
echo 1. ???
echo 2. Delete all of your documents.
echo Type 1 or 2
pause >nul
shutdown -im -r
goto End

:ALLOW
color C
cls
echo ACCESS GRANTED
pause
cls
color 7
echo Name of the folder
set/p "fol=>"
if EXIST %fol% goto SELECT
if notEXIST %fol% GOTO notfound

:notfound
ECHO File Not FOund
goto End

:SELECT
echo Hide/Unhide [h/u]
set/p "com=>"
if %com%==h goto HIDE
if %com%==u goto UNHIDE

:HIDE
attrib %fol% +s +h
goto End
:UNHIDE
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==unlock goto FAIL
attrib %fol% -s -h
goto End

:FAIL
echo Invalid password
pause
goto End

:End
exit

Step 2: Finally...

Finally save it and change the file extension (.txt) to .bat
Open it up, type in 'unlock' without the quotes. After it comes up with ACCESS GRANTED, type in the file that you want to hide. (the file must not have any spaces, and the batch file that you just created must be in the same folder/Directory as the file you want to hide). Once you have typed in the name of the file that you want to hide (and pressed enter), type h and press enter.

To Unhide...

Open up the batch file, get to the area where it says name of file. Type the file that you hid and press u.

Enjoy!

P.S. I have had a comment asking for help. I cannot help you or anyone else who asks. You can download the program and follow on using this step.

Sorry

i i don't know how to use this program :( can you make some tutorial or pict about this?

i i don't know how to use this program :( can you make some tutorial or pict about this?

i i don't know how to use this program :( can you make some tutorial or pict about this?

helpppp. my usb i used this ructable. i thought it was great until the diasster. i have heaps and heaps of games i download and im trying to hide them from my mum, she will kill me if she finds them but thats not important. i accidentaly deleted the shortcut batchfile from my usb while my folder of games was hidden. i also forgot the folder name and now i cant get back my games file. is there a way that using comand prompt you can get the folder back. help. im sure someone else will encounter this problem sooner or later son help.
my one is awesome

@echo off
title Super Hidden Folders Creator- By Michael.

echo Identify.
set/p "com=>"
if %com%==I'm-Awesome goto ALLOW
pause

:ALLOW
pause
cls
echo I Know!
echo File Name...
set/p "fol=>"
if EXIST %fol% goto SELECT
if NOTEXIST %fol% goto NOTFOUND

:NOTFOUND
echo File Not Found.
pause
goto END

:SELECT
echo Hide/Unhide? [Hide/Unhide]
set/p "com=>"
if %com%==Hide goto HIDE
if %com%==Unhide goto UNHIDE

:HIDE
attrib %fol% +s +h
goto END

:UNHIDE
echo Password.
set/p "pass=>"
if NOT %pass%==irule goto FAIL
attrib %fol% -s -h
ping localhost -n 3 >nul
echo Unlocked Succesfully.
goto END

:FAIL
echo Incorrect.
pause
goto END

:END
pause
exit

instead of it saying well done or the original thing it says i know which is cool when the password is I'm-Awesome. it says 'I know.'

try it out.
(second password is irule.)
Wesfletch3 years ago
Ok... Awesome instructable. Helped me learn batch.
But, Great as it is, i did find a few, just a few, flaws:
1. When the file isnt found, it doesnt go to the NOTFOUND part of the script.
2. It ends a little suddenly, as in, if you type it wrong, it just ends, instead of telling you.
3. The access granted screen is red, so more than once, i thought i messed up.
4. It gives you the option of shutting down the computer, now, whos gonna say yes to that, instead of just x'ing out?

So, i added a few things.
1. Got rid of the shut down.
2. Made a "press any key" screen before it ends.
3. Made a timer on the unlocking, so it stalls 3 seconds.(makes it slicker)
4. A couple other things i cant remember.

Here's the code:

@echo off
title Super Hidden Folders Creator- By James, Edited by Wesfletch

echo Identify.
set/p "com=>"
if %com%=="password here" goto ALLOW
pause

:ALLOW
pause
cls
echo Well Done.
echo File Name...
set/p "fol=>"
if EXIST %fol% goto SELECT
if NOTEXIST %fol% goto NOTFOUND

:NOTFOUND
echo File Not Found.
pause
goto END

:SELECT
echo Hide/Unhide? [Hide/Unhide]
set/p "com=>"
if %com%==Hide goto HIDE
if %com%==Unhide goto UNHIDE

:HIDE
attrib %fol% +s +h
goto END

:UNHIDE
echo Password.
set/p "pass=>"
if NOT %pass%=="2nd Password Here" goto FAIL
attrib %fol% -s -h
ping localhost -n 3 >nul
echo Unlocked Succesfully.
goto END

:FAIL
echo Incorrect.
pause
goto END

:END
pause
exit

(remember to put your own passwords)
There it is!!!!
Happy Batching
-WesFletch
Saturn V4 years ago
There is only one flaw I found. If you need to hide a document in a folder and you use this, it may be search-proof, but it shows up in the Recent Documents list. Everything besides recently edited documents are 100% secure.
nirjhar4 years ago
Yes really its helpfull for all of us.Thanks again. I have first time found the original solution of this Super hidden mater. Thanks.
Thank you,
I have been looking for a tutorial like this for a long time
!!AWESOME!!

jchar77 (author)  Ryan.Thompson5 years ago
That's ok. If you want to look for other things, google them. Yahoo answers is also a good source!
NetDex jchar775 years ago
Awesome! I've been waiting for this so no one can blow my cover.
Kaito955 years ago
wow very nice... i like it... 10 / 10 where u learn that??
jchar77 (author)  Kaito955 years ago
Off the internet and other instructables. Basically i taught my self
hg3415 years ago
im working on batch and c++ im not very good
but you need to break the bat file down and explain how it works
Wafflicious5 years ago
i cant find the file after first save.
jchar77 (author)  Wafflicious5 years ago
What? Saving the program or hiding the file
neither... after i saved it i couldnt find it to open it =)
jchar77 (author)  Wafflicious5 years ago
please read the little message at the very end of this instructable. Please download the file. I seriously cannot help you. Im so sorry. AND IT WAS MY FIRST INSTRUCTABLE TOO.
dariel245 years ago
Whats weird about the picture?
jchar77 (author)  dariel245 years ago
It's just weird having the photo of the program when I just gave you the program
oh... i dont think that's weird though......
jchar77 (author)  dariel245 years ago
Ok, I just thought it was weird...
xie11135 years ago
I've included a alarm now, and the alarm is VERY hard to mute

@echo OFF
title Super Hidden Files Creator - By James

echo Password...
set/p "com=>"
if %com%==bloodfever goto ALLOW
echo WRONG!
goto alarm

:ALLOW
color C
cls
echo ACCESS GRANTED
pause
cls
color 7
echo Name of the folder
set/p "fol=>"
if EXIST %fol% goto SELECT
if notEXIST %fol% GOTO notfound

:notfound
ECHO File Not Found
pause
goto End

:SELECT
echo Hide/Unhide h/u
set/p "com=>"
if %com%==h goto HIDE
if %com%==u goto UNHIDE

:HIDE
echo Enter password to hide folder
set/p "hij=>"
if NOT %hij%==bloodfever goto alarm
attrib %fol% +s +h
goto End

:UNHIDE
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%==bloodfever goto alarm
attrib %fol% -s -h
goto End

:alarm

cls
goto alarm

:End
exit
jchar77 (author)  xie11135 years ago
That's cool! Thanks!
collard415 years ago
if the file has spaces in it then you can put it in quotation marks around it like "this" and then it will count it as one name.
jchar77 (author)  collard415 years ago
Thanks!
xie11135 years ago
can you change the password on this
jchar77 (author)  xie11135 years ago
Change the ending (on the program) from .bat to .txt. Open it up. At the top somewhere there will be a bit of code saying if %com%==unlock goto ALLOW.
The unlock bit is the password. Change it to what ever you want as long as it has a space between the end of the password and the goto ALLOW bit.
Thanks for asking!
xie1113 jchar775 years ago
ok, thanks