Thursday, 7 November 2013

Lock Folder By Giving Password

By
Hello Friend Today I am Going to Explain You How Lock Your Folder by giving Password.We can put our Private data into that and That Folder by-default Created When you Click on batch file that's way first you want to create batch file .so how to Generate Batch File and How to Lock It .So this all thing today I Explain You Step By Step  .

Lock Folder By Giving Password

Step 1 : Create one New Folder .Then give the name of Folder .e.g-SECURE FOLDER

Step 2 : Then Open Notepad And Put Below Code in Notepad .

 cls
 @ECHO OFF
 title Folder private
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 echo Folder locked
 goto End
 :UNLOCK
 echo Enter password to unlock folder
 set/p "pass=>"
 if NOT %pass%==Set your password here goto FAIL
 attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
 echo Folder Unlocked successfully
 goto End
 :FAIL
 echo Invalid password
 goto end
 :MDLOCKER
 md Private
 echo Private created successfully
 goto End
 :End

Step 3: after put the code in Notepad Then Set Your Password in that code.

Lock Folders By Giving Passwords

Step 4:  Now Save This File In Your Folder where you want to lock your files and save the file name with ".bat" extension and Save as Type will All Files .  >  E.G -:" Secure.bat"


Lock Folder By Giving Password

Step 5 : Now  Secure.bat File Will Be Created Now Click on it .then It Will Be  automatically Create One Private Folder. 

Lock Folder By Password

Step : 6 Now you can put your Private data into Private folder.you can see here Private folder and also under private folder data..

Trick to Lock the Folder

Step 7 : after create the private folder if you want to lock the private folder then go on secure.bat fie (batch file) then open it .then there is  cmd window is open in that you see one massage "are you sure you want to lock the folder(Y/N)" then enter Y if you want to lock it .then after press enter .now your private folder will be lock.so you can not see it you can see only batch file.


Lock the Folder

Step 8 : after lock the folder if some time you want to add some private data into your private folder .so first you want to unlock it.so again go on secure . bat file(batch file) then open it .and again you see cmd window and one massage but massage is different this time "Enter your Password to Unlock Folder" .now enter your password that you set in batch file ex:- 0000 then press enter .then your private folder will unlock. 

Lock Folder By Giving Pasword



Now Friends You Understand very well How to Lock Folder By Giving Password .Friends if you Like this Trick then Share this Post and don't forgot to write a comment Below.

1 comment:

  1. Remarkable issues here. I am very satisfied to look your article. Thanks a lot and I am looking forward to touch you. Will you please drop me an e-mail? More tips here: How To Password Protect Folder.

    ReplyDelete