Results 1 to 8 of 8

Thread: Password Protect File/Folder in Windows 7

  1. #1
    Join Date
    Feb 2008
    Location
    Islamabad, UK
    Posts
    88,507
    Mentioned
    1031 Post(s)
    Tagged
    9706 Thread(s)
    Thanked
    603
    Rep Power
    21474934

    Thumbs up Password Protect File/Folder in Windows 7

    Today I am going to share with you a very special trick to lock and hide a folder in Win 7. It's simple and quite unique

    Step 1: Create a folder of any name.

    Step 2: Double click the folder to enter inside it. Now create a new text file

    Step 3: Open this text document. Copy and Paste this code:

    cls
    @ECHO OFF
    title Folder Personal
    if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    if NOT EXIST Personal 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 Personal "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 goto FAIL
    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
    echo Folder Unlocked successfully
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Personal
    echo Personal created successfully
    goto End
    :End

    Change the PASSWORD to the password you want to keep. For example, if you want to keep your password as google then rewrite as follows:
    if NOT %pass%== google goto FAIL

    Step 4: Save this text file as Locker.bat

    Step 5: Now double click the Locker.bat file created above, after a second you will notice that a folder with the name Personal is created (the third line of the code, before we check for the existence of the folder).

    Step 6: Copy and Paste whatever you want to keep in this 'Personal' folder. Then double click the Locker.bat file, it will prompt you for confirmation on Locking

    Step 7: Press Y or y as per the code to lock the folder.

    Now the folder will disappear, even if you have set the Folder Options to Show hidden files, folders, and drives

    Step 8: To unlock and show this folder, double click Locker.bat. This time it will prompt you to enter the password




  2. #2
    *jamshed*'s Avatar
    *jamshed* is offline کچھ یادیں ،کچھ باتیں
    Join Date
    Oct 2010
    Location
    every heart
    Posts
    14,586
    Mentioned
    138 Post(s)
    Tagged
    8346 Thread(s)
    Thanked
    4
    Rep Power
    21474858

    Default Re: Password Protect File/Folder in Windows 7

    Thanx for sharing

  3. #3
    Join Date
    Jan 2011
    Location
    pakistan
    Posts
    9,092
    Mentioned
    95 Post(s)
    Tagged
    8378 Thread(s)
    Thanked
    2
    Rep Power
    429513

    Default Re: Password Protect File/Folder in Windows 7

    thanks for sharing.......


  4. #4
    Join Date
    Sep 2013
    Location
    Karachi, Pakistan
    Posts
    7,416
    Mentioned
    507 Post(s)
    Tagged
    5438 Thread(s)
    Thanked
    359
    Rep Power
    874041

    Default Re: Password Protect File/Folder in Windows 7

    Amazing... thanks for adding this bit to our knowledge, really appreciate your effort, khush rahyeh and keep generating our knowledge.

  5. #5
    Join Date
    Oct 2013
    Location
    karachi
    Age
    31
    Posts
    38
    Mentioned
    1 Post(s)
    Tagged
    954 Thread(s)
    Thanked
    0
    Rep Power
    0

    Default Re: Password Protect File/Folder in Windows 7

    Windows seven hai to achi per yar woo home user ke liye hai professional ke liye nahi..mere khayal see kio ke osmein buhat sari devices ke driver nahi hai...

  6. #6
    Join Date
    Jul 2011
    Location
    Karachi Pakistan
    Posts
    13,592
    Mentioned
    62 Post(s)
    Tagged
    7109 Thread(s)
    Thanked
    1
    Rep Power
    21474856

    Default Re: Password Protect File/Folder in Windows 7

    mushkil

  7. #7
    Join Date
    Feb 2008
    Location
    Islamabad, UK
    Posts
    88,507
    Mentioned
    1031 Post(s)
    Tagged
    9706 Thread(s)
    Thanked
    603
    Rep Power
    21474934

    Default Re: Password Protect File/Folder in Windows 7

    Quote Originally Posted by lukmanplz View Post
    Windows seven hai to achi per yar woo home user ke liye hai professional ke liye nahi..mere khayal see kio ke osmein buhat sari devices ke driver nahi hai...
    maine tu ab tak aik b driver nahi dala

  8. #8
    Join Date
    Sep 2011
    Location
    Jadoo Nagri
    Posts
    19,713
    Mentioned
    198 Post(s)
    Tagged
    8340 Thread(s)
    Thanked
    10
    Rep Power
    21474862

    Default

    41-Nice information lekin yeh batao yeh sari cheezen u ko lab kahan sye jati hain aur samjh kesay aati hain

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •