Ad-Sense

Thursday 18 December 2014

Create Password-protected Folder using Notepad

Lock your personal data in password protected Folder using Notepad.
Step 1 :  Open notepad. [start > Program > accessories > notepad]
Step 2 :  Copy the following code in notepad which is in text area.




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


Step 3 :  Now Save this file with .bat extension. [e.g lock.bat]

Step 4 :  Double click on your file [lock.bat]

>>> Now you can see one folder name with "Secure"

Step 5 :  Move your personal data in this Folder (Secure)

>>> When you want to lock this folder [secure]. just double click on batch file and you can see one window then type Y and hit Enter.

>>> Now you can see your folder [secure] is hide. when you want to access the data into the folder, then double click on batch file and Enter your password. 

[default password is "errorcode401" , If you want to change your password then right click on batch file and Now Find "errorcode401" and replace it with your password. remember your password, because when you want to access this folder password is necessary].

Keep commenting and hide your personal files using this trick.

4 comments:

  1. Hey man i did what you said. the folder name private was created and then i copied some songs to the folder and then i closed as you said. But when i tried to open the folder again it didn't asked me any password and just opened as any folder. I checked the script again and also opened the bat file which asked me that do you want to make this folder private, something like that and i said yes but nothing worked it just opens as any other folder and also one ö file was created when i ans yes to the question. so help me with that.

    ReplyDelete
    Replies
    1. I updated the code and now its all working fine. Thanks for your response.

      Delete