Wednesday, November 5, 2014

Easy way to create a password protected folder


My dear now I am going to create a password protected folder without using any third-party software. If you follow the below step you also able to   create password protected folder .if you are beginner be carefully 



1st step:-


First of all you have to create a folder anywhere in your computer & and you can rename it’s as your choice.





2ndstep

Open folder that you created  and create new blank text document in this folder



3rd step
Open created blank text document and copy paste the following cored in the text document

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== enter your password goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

Delete this wording “enter your password” in the above cored and type your password here
Note:-Be carefully





4th step
Now text document should save but if you save this in a “.txt “format it will not work. You have to save this text document in “.bat” format. I will see you how to do that.
Click on the save an save the text document





You can see the text document   like below








Rename "the new text document "  as “locker.bat” after rename you can see the below massage click on yes. 

Now your file type has been changed and also it appearance has been change. This is the your password protected folder


5th step
Lest use this folder

Double click on the bat file then you can see your folder






Now you can save your document in this folder and if you want to lock this folder again double click on bat file This time you will be asked if you sure that you want to lock the folder .press “Y” key after press enter key your folder will be disappear .


If you unlock your folder again double click on your bat file this time you will be asked your password. Then you have to enter your password and press enter key. if you have enter correct password your folder reappear



0 comments :

Post a Comment