Saturday, February 22, 2014

How to Create a Password Protected Folder

Leave a Comment
I hope everyone needs a personal folder which should be highly protected .. :p

There are many options /methods available to create a password protected folder most of which uses a 3rd party software.I am gonna use the simplest way with a batch script.
only applicable for windows users.

TO CREATE A LOCKED FOLDER
  1. Create a folder .
  2. Now go to that folder and create a new text document file by :-
    right click>>new>>Text document
  3. paste the following code in the new 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%== PERSONAL 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
  4. now type your personal password where the PERSONAL PASSWORD is written (last 13th line).
  5. now go to file drop menu and select save as
  6. name the file as locker.bat and change the type from text document to all files.
  7. thats it . notice the icon changes to geared one.
  8. Double click it . it should create a folder named PRIVATE.
  9. Put all your personal data into in then run the locker.bat file again.
  10. this time it will ask you to lock your folder.type y to lock.
  11. Soon the PRIVATE folder will disappear.
TO SEE THE FOLDER AGAIN :-
  1. run the locker.bat file.
  2. it will prompt you for your password .
  3. type the same password it will show you the folder again if incorrect password it will just terminate.
Warning:- 
  • Be careful with script.
  • There are some limitations to this method also .

You can delete the original text file once the batch file is saved.

If you enjoyed this article then kindly take 5 seconds to share it!!

0 comments:

Post a Comment