Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to set password to a folder without a 3rd party software  (Read 4408 times)

0 Members and 1 Guest are viewing this topic.

Whitebeard1

    Topic Starter


    Intermediate

    Thanked: 2
    • Computer: Specs
    • Experience: Familiar
    • OS: Mac OS
    How to set password to a folder without a 3rd party software
    « on: April 23, 2013, 09:05:58 PM »
    This tutorial will guide you through the steps required to create a locked folder in Windows 7 – without installing any additional 3rd party software.
    Note: while the steps will guide you to make a hidden password protected folder, it is not 100% secured. It can stop average computer users from accessing it, but experts may be able to find out the password and access the folder.

    1. Create a new folder, and name it anything you like. E.g, my private folder.

    2. Go in the folder you just created, and right click on blank area. On the pop-up menu, make a New Text Document .

    3. Open the text document you just made, and copy the following into it:
    cls
    @ECHO OFF
    echo Folder Locker Started
    Pause
    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
    Pause


    4. At where the PASSWORD_GOES_HERE is, replace it with your own password.
    Note: I recommend you back up the file first in case you forgot the password.

    5.Now click SAVE AS in the text document. Save it as: Locker.bat, and make sure it is saved as type
    ALL FILES.
     
    6. Close the text document and double click on locker.bat. A black screen should pop up and follow the instructions given. A file named "Private" should be created automatically.

    7. To unlock the file: type in the password you set earlier when it tells you to.
       
        To lock the file, type in Y/N, to determine if you want to lock it.

    8. That's it. Enjoy using this locker!

    Computers follow your orders, not your intentions.

    Salmon Trout

    • Guest
    Re: How to set password to a folder without a 3rd party software
    « Reply #1 on: April 24, 2013, 12:59:54 AM »
    experts may be able to find out the password and access the folder.

    An "expert" who knows how to open a batch script, helpfully named "locker.bat", in Notepad.

    Whitebeard1

      Topic Starter


      Intermediate

      Thanked: 2
      • Computer: Specs
      • Experience: Familiar
      • OS: Mac OS
      Re: How to set password to a folder without a 3rd party software
      « Reply #2 on: April 24, 2013, 02:25:54 AM »
      You can name it something else, of course... forgot to mention that. Maybe name it Virus.bat so one might think it's a virus!
      Computers follow your orders, not your intentions.

      Salmon Trout

      • Guest
      Re: How to set password to a folder without a 3rd party software
      « Reply #3 on: April 24, 2013, 03:00:22 AM »
      Doesn't matter what you call it, having passwords in plain text files is ridiculously insecure. The average 9 year old junior geek would find it in a minute or so.

      Whitebeard1

        Topic Starter


        Intermediate

        Thanked: 2
        • Computer: Specs
        • Experience: Familiar
        • OS: Mac OS
        Re: How to set password to a folder without a 3rd party software
        « Reply #4 on: April 24, 2013, 03:12:45 AM »
        Well even if someone is genius in computer, they might not even know that there is the pivate file. Just like what I did, I named my file "Jono's files", and the batch file inside it "Batch file" mixed with other documents. An expert might come and may not open the batch file in notepad just for fun if he/she didn't know that I had the private file. Unless I told him:"Hey mate, I got a batch file that can store my private files, so don't touch it."

        By the way your are right that if someone knew that file is used to hide a private folder, it is insecure. But just don't tell them. And can we stop arguing please :D.
        Computers follow your orders, not your intentions.

        Salmon Trout

        • Guest
        Re: How to set password to a folder without a 3rd party software
        « Reply #5 on: April 24, 2013, 04:14:02 AM »
        Computerhope has a reputation for giving good advice; this isn't a chat room, and insecure practices are a bad idea.