how to password protect a folder (4 simple ways)

We all have a computer/laptop and all have some important folder in that, which we want to take protected from others. But, some of you may don’t know that how to password protect a folder, then this article can help you a lot.

A technical person can protect their files, but they’re some of such peoples also who don’t have much technical knowledge. So here we are going to teach you all the techniques which can help you to protect your file or folder.

There are multiple ways to protect your data, file, or folder from the world, but some of them are more confusing. You may maximize your head ace. But don’t worry we will take it in very simple ways.

Why should we protect the folder? 

how to password protect a folder? Maintaining privacy can be the main aspect of protecting your folder. if suppose, in a home multiple people are using the same computer, and you have some important file/folder which you want to hide from someone. Then making that folder password protected can be the best option.

Secondly, suppose someone stole your computer and wants to delete any of your folders, then they will not be able to delete it. In this way, you can control your folder privacy.

How to lock a computer folder in windows?

So there are 4 simple methods to protect your folder or lock folder.

  1. By creating a “.bat” file on folder location.
  2. Create password protect a folder by “.rar” method 
  3. Loc folder using the full control method 
  4. Lock folder by using third-party software.

1. By creating a “.bat” file on folder location.

Protecting your folder by creating a “.bat” file is a very effective method. With this, you can create password protect folder/file. To do this, follow the steps.

  • Step 1: Open the folder which you want to protect.
  • Step 2: Right-click and create a new text file.
how-to-password-protect-a-folder
  • Step 3:  paste the following code to that text file.
cls

@ECHO OFF

title Folder Locker

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Locker goto MDLOCKER

:CONFIRM

echo Are you sure u 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 Locker "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%==Your-Password-Here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Locker

echo Locker created successfully

goto End

:End
  • Step 4: replace “enter your password” with your password and save
how-to-password-protect-a-folder
  • Step 5:  Now you have to create a batch file, for that open text file again and save it as a “.bat” file 
  • Step 6: just double click on the “.bat” file icon as you can see in the image. a locker folder will generate automatically. Now you can save any data in that locker folder.
how-to-password-protect-a-folder
  • Step 7: double click on the “.bat” file, a prompt will open, which will ask you that “do you want to lock folder” type Y/to say yes. Your folder will be locked.

How to open an encrypted folder?

  • Step 8: double click on the “.bat” file, a prompt will open which will ask for the password. Just enter your password and your folder will appear.
password-to-protect-a-folder

This method can be accurate if you want to create a password-protected folder. 

2. Create a password protect a folder by the “.rar” method 

Rar method can create a password-protected folder by creating a “.rar” file. To create a password protect folder follow the steps.

  • Step 1: Select your particular folder and right-click, click on ad to archive.
protect-a-folder
  • Step 2:  go to the advanced tab
  • Step 3: Click on set password.
password-to-protect-folder
  • Step 4: check Encrypt file name and click on ok
  • Step 5:  a “.rar” file will be generated; now you can delete your folder which you encrypted. Your folder data will be saved into the “.rar” file. Now You can open it by providing a valid password only.

In this method, you can create a password-protected file/folder, but your file/folder will be converted to a “.rar” file. Your “.rar” file will be protected not your plain folder.

3. Lock folder using the full control method 

  • Step 1: Right-click on the folder which you want to protect or lock.
  • Step 2: go into the property 
  • Step 3: go in Security and click on edit
how-to-password-protect-a-folder
  • Step 4: click on administrator and select all the options and click on apply.
  • Step 5: When you try to open that folder, it will show the following popup window. 

In this method you can get full control of the folder but, you can not create a password-protected folder. A person who has somewhat technical knowledge can open your folder. It will not provide full protection to your file/folder.

4. Lock folder by using third-party software.

If you are not comfortable with the above techniques, don’t worry there is also another solution for creating a password-protected folder.

Third-party software can help you to some more extent. Some of the software provides some great features like, you can lock folders, and you can get backup of encrypted files. By using them you can create a password-protected USB/External drive also.

There is multiple folder locker software available in the market but, folder lock can be the best option for you which is available free of cost. You can buy its pro version for additional features.

  • Folder Lock:

Folder Lock third-party software for protecting your files, folder. It enables you to create password protected files/folder which you want to hide from unwanted eyes.

As your money is kept in the secure lock in the bank, Folder Lock also creates a secure lock for you, in which you can store your important files/folder securely.

Let’s look at some features of Folder Lock.

  • One-click protection.
  • Encrypt your files and folders.
  • AES-256 bit encryption.
  • Get secure offline/online backup 
  • Create password-protected USB/External drive 
  • It provides a password wallet to protect confidential information.

How to use Folder Lock?

Above all methods are a very simple and easy method to protect file/folder, if you have some very important files/folder in your computer, then maintaining that file/folder secure will be your priority. To that professionally “locking folder by using third party software” method will be the best option.

similarly, If you want to just protect your folder/file, if your computer is only yours then you can use any method. You can use the “.bat” method or the “.rar” method, both are good and simple as well.

you may also like how to backup computer/laptop

2 thoughts on “how to password protect a folder (4 simple ways)”

Leave a Comment

%d bloggers like this: