Results 1 to 2 of 2

Thread: How to Create a Password Protected Folder without Extra Software

  1. #1
    Join Date
    Apr 2008
    Posts
    598

    How to Create a Password Protected Folder without Extra Software

    This article shows simple steps to create a password protected folder in Windows 7. Here you don't really need any additional software for the process. The process is simple here. Anyone can simply use this method without worrying about advance settings or messing up with third party software. Data remains in the folders and files access is limited. This can be helpful to keep your work, personal photos, etc personal.



    There are lots of methods you can add a password protected directory. Most of them need some third party software. Using the following method you can hide folders with a batch script. It is important to note that this does not completely protect the directory.

    Create a password protected directory

    Before you begin you must create a folder that can have your data or password protected directory or folder.


  2. #2
    Join Date
    Apr 2008
    Posts
    598

    Re: How to Create a Password Protected Folder without Extra Software

    Navigate to the folder you just created and create a new text document in that. This can be done easily from the context menu.


    Open the document and paste inside the code shown below:

    cls
    @ECHO OFF
    title Folder Private
    if EXIST "HTG Locker" 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 "HTG Locker"
    attrib +h +s "HTG Locker"
    echo Folder locked
    goto End
    :UNLOCK
    echo Enter password to unlock folder
    set/p "pass=>"
    if NOT %pass%== Type_Desire_Password goto FAIL
    attrib -h -s "HTG Locker"
    ren "HTG Locker" Private
    echo Folder Unlocked successfully
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Private
    echo Private created successfully
    goto End
    :End
    You have to add the password in place of Type_Desire_Password. And once you are done with editing the text file save it as locker.bat.


    Once the file is saved as a batch file, you can delete the original text file.


    Now run the batch file by double-clicking on it the first time it runs, you will see a folder called Private. This is precisely the folder in which you can store all your files. Once you are finished adding all the desired files in private folder, rerun locker.bat.


    This time will be asked if you really want to lock the folder, press "Y" and hit enter


    You will see the private folder will disappear quickly.


    If you run the script again, it will ask for the password.


    If you enter the same password you set earlier in the script, the private folder will reappear and if you enter incorrect password, the script will simply close.

Similar Threads

  1. How to break password-protected rar file?
    By JAMIN in forum Windows Software
    Replies: 24
    Last Post: 17-02-2013, 11:37 AM
  2. how to unlock password protected PDF documents
    By sunshine2009 in forum Windows Software
    Replies: 2
    Last Post: 07-08-2009, 08:23 AM
  3. Create a password protected zip file
    By kailas in forum Windows Software
    Replies: 2
    Last Post: 30-05-2009, 09:31 PM
  4. Replies: 1
    Last Post: 23-02-2009, 10:02 AM
  5. How to create Password protected Network drive?
    By Janet J in forum Networking & Security
    Replies: 2
    Last Post: 20-02-2009, 11:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,763,209.93338 seconds with 17 queries