Create Your Password Protected Folder
Before you get started you
need to create a folder that will house your password protected folder,
this is just an ordinary folder and can be located anywhere and named
anything.
Navigate into your newly created folder and create a new Text Document. This can easily be done from the context menu.
Open the NotePad, Then paste the following code into the contents of the document:-
cls
@ECHO OFF
title Files
if EXIST "Locker" goto UNLOCK
if NOT EXIST Files goto MDLOCKER
:CONFIRM
echo Are you sure to lock the folder?(Yes/No)
set/p "cho=>"
if %cho%==Yes goto LOCK
if %cho%==No goto END
echo Invalid choice!
goto CONFIRM
:LOCK
ren Files "Locker"
attrib +h +s "Locker"
echo Folder locked!
goto End
:UNLOCK
echo Enter password to unlock folder!
set/p "pass=>"
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Locker"
ren "Locker" Files
echo Folder Unlocked successfully!
goto End
:FAIL
echo Invalid password!
goto end
:MDLOCKER
md Files
echo Files created successfully!
goto End
:End
Change the "Files" words to the name of your folder you want to set. Note that the name does not contain any spaces.
Change the "PASSWORD" word to the password you want to set.
Now go ahead and save the file as locker.bat.
Once the file is saved as a batch file you can delete the original text file.
Now run your batch file by
double clicking on it–the first time you run it, it will create a folder
of the name you typed in the code. This is where you can store all your
secret things. When you have finished adding all your stuff to that
folder, Run locker.bat again.
This time you will be asked if you sure that you want to lock the folder, type "Yes" key and hit enter to lock your folder.
You will see that your folder quickly disappears.
If you run the script again, you will prompted for a password.
If you enter the same password
as you set in the script the folder will reappear & if you enter
the incorrect password the script will just terminate.
If You Forget Your Password
Open the batch file and read
your password by Right-clicking on the locker.bat file & selecting
Edit & searching the line "if NOT %pass%== (your password) goto FAIL
"
It’s definitely not a really secure way to hide your files, but it is fun.
No comments:
Post a Comment