How To Lock A Folder In Windows 10 If You Want To Protect Your Files

Harin


How to lock a folder in Windows 10 if you have files that you don’t want other people to access? We will give you three simple ways.

If in your computer there are files that you don’t want other people to access, the simplest way is to lock them up in a password-protected folder. Windows supports basic password protection, allowing you to keep your files safe. If you want to protect your precious files, here is how to lock a folder in Windows 10.

But before we begin with the steps, we should warn you that while the method is straightforward and effective, it is not suitable for mission-critical or large-scale use. If you have really sensitive information stored in your device, you should definitely invest in encryption software instead. So let’s begin with steps of how to lock a folder.

Method 1: How to lock a folder in windows 10 with a password using a built-in feature

Here is how to lock a folder in Windows 10 with a built-in feature.

  • Step 1: Open File Explorer and go to the file or folder that you want to protect. Right-click to open the context menu. Then click on “Properties.”

How to lock a folder in windows 10 step 1.

  • Step 2: In the Attributes section, click on “Advanced…”

How to lock a folder in windows 10 step 2.

  • Step 3: At the bottom, you will find a checkbox for “Encrypt contents to secure data.” Tick that and click OK to go back to the Properties window.

How to lock a folder in windows 10 step 3.

  • Step 4: Once you have done, you will be required to back-up the encryption key. This is if you have never used this feature before. All you have to do is click on the toast notification and then follow the prompts to back up your encryption key. It will come in handy in case you lose access to your protected files.

How to lock a folder in windows 10 step 4.

Method 2: How to lock a folder in Windows 10 using a locker folder

You can only use this method if you want to lock files as it won’t work on folders.

  • Step 1: Go to the folder where you keep the files that you want to lock.
  • Step 2: Type the code that we have below in a Notepad document. Then save the text file. You can name it, for example, “PasswordPro.txt”

Type the code in a Notepad document.

  • Step 3: Move the text file to the folder with the files you want to protect.
  • Step 4: Open the text file. Go to the line with the “Enter-Your-Password-Here” text. Type in your own password. Here we use “enjoytheevening” as the password.
  • Step 5: From the top menu, click on File. Choose “Save As” as “All Files”. Then select “Save as type.”

Save as Type.

  • Step 6: Save your file as “.bat” extension. Then click "Save".

Save as ".bat" extension.

  • Step 7: Create a new folder inside the original folder. Then move your files into this new folder.

Create a new folder.

  • Step 8: Double click on the “PassWordPre.bat” file. After that, you will be asked to use a command prompt window to lock the locker folder.
  • Step 9: Type Y, then press “Enter.” After that, the window will close. At the same time, it will hide the locker folder. Now, the only files left are the “PasswordPro.bat.” and the “PasswordPro.txt.” file. If you want to unlock the folder, just double-click on the file “PasswordPro.bat”. A new CMD window will pop up and you be asked to unlock the folder with your password that you have just created. Press “Enter” and the lock folder will show up.

Type Y, then press “Enter.”

You can watch the video below for a clear demonstration. How to lock a folder in Windows 10 YouTube demonstration.

Method 3: How to lock a folder in Windows 10 using a third-party app

Here is how to lock a folder in Windows 10 with WinRAR.

  • Step 1: Download WinRAR to your computer and install it.
  • Step 2: Go to your file or folder and right-click.
  • Step 3: Select the option for “Add to archive”.

Here is how to lock a folder in Windows 10 with WinRAR.

  • Step 4: You will need to type in a “Name” for the file and click on the “Set password…” button.

Here is how to lock a folder in Windows 10 with WinRAR - set password.

  • Step 5: Enter your desired password. Make sure to tick the “Encrypt file names” option.

Here is how to lock a folder in Windows 10 with WinRAR - enter password.

  • Step 6: Click OK two times and you are all set.

Those are all three methods on how to lock a folder in Windows 10. We hope that you will find this article helpful.

>>> 'Internet Explorer Cannot Display The Webpage' - How To Fix It

Next Story

Read More

ICT News- Feb 26, 2025

Elon Musk's Federal Workforce Overhaul: AI Takes the Helm

Elon Musk is shaking up the U.S. federal workforce with a drastic measure—leveraging AI to determine who's essential and who's expendable.

ICT News- Feb 25, 2025

Google to Phase Out SMS-Based Authentication Codes

Google is set to discontinue authentication and account recovery via SMS verification codes.

ICT News- Feb 25, 2025

Not Radiation: What Is Causing the Strange Genetic Evolution of Chernobyl’s Dogs?

For years researchers believed that the dogs surviving in the highly radioactive zone of Chernobyl would exhibit strong genetic mutations, helping them adapt to the harsh environment. However, the latest studies have completely...

Features- Feb 26, 2025

Elon Musk Eyes Indian Market: Tesla’s Next Big Move?

Amid slowing global sales and political tensions, Tesla is making strategic moves to enter one of the world’s fastest-growing automotive markets - India.

Review- Feb 27, 2025

Microsoft Surface: A Shift from Innovation to Stability?

ICT News- Feb 26, 2025

Will AI Kill Coding Jobs? The Truth Might Surprise You

For years and now more than ever, we’ve heard that AI is coming for everyone’s jobs—from truck drivers to customer service reps. But what about programmers?