how to make a password on folder, documents, or file.pdf

Upload: hannah-thyda

Post on 04-Nov-2015

224 views

Category:

Documents


0 download

TRANSCRIPT

  • How to make a password on folder or file

    1. Make one folder

    2. Open that folder Next, right click on it New Text Document

    3. Copy code below and then Paste on Text Document

  • 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%== PASSWORD_GOES_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

  • 4. In the above code, replace the key PASSWORD_GOES_HERE with the password you want to use to unlock the folder. For example if you want the password to be 123456, the line should look like:

  • 5. Save as

    1. File name : input the name that u want[ the end the name must be dot bat (.bat ) ] ( for exampl: locker.bat ) 2. Save as type : select All File 3. Next : select Save for Finish

    6. Next you will saw this file in your folde

    Then you double click on locker file, it will show you Private folder as below

  • Next you double click on locker file again, it will show you as picture below

    Then you just write Y enter

    And after that your Private folder will be hide. For example, as picture below:

  • If you want to show your Private folder, you just double click on locker file again

    Then you write your Password (123456) on it enter

    Note You can Copy some documents or files to Paste in Private folder if those documents are

    special for you, or you do not allow someone to see your documents.