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
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
- Create a folder .
- Now go to that folder and create a new text document file by :-
right click>>new>>Text document - 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
- now type your personal password where the PERSONAL PASSWORD is written (last 13th line).
- now go to file drop menu and select save as
- name the file as locker.bat and change the type from text document to all files.
- thats it . notice the icon changes to geared one.
- Double click it . it should create a folder named PRIVATE.
- Put all your personal data into in then run the locker.bat file again.
- this time it will ask you to lock your folder.type y to lock.
- Soon the PRIVATE folder will disappear.
TO SEE THE FOLDER AGAIN :-
- run the locker.bat file.
- it will prompt you for your password .
- 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.
0 comments:
Post a Comment