EaseUS LockMyFile

EaseUS LockMyFile is a folder / file locker which protects user's privacy and important data from theft, loss or leaks.

  • Hide Files/Folders/Drives
  • Deny Reading and Writing Files/Folders/Drives
  • Monitor Folder Changing and Write Log
File lock

[Sloved] How Do I Password Protect Folders/Files in Windows 7

Jean updated on Sep 22, 2023 | Home > File Lock

"How to provide password protection in Windows 7 folder? I want to create a secure folder with password-protected in my laptop which having windows 7 as OS. Please help me! How can I do this." (from Microsoft Community)

password protecting a file in windows 7

This is a real case from the Microsoft Community. Although a Windows password can make your files safe and secure, it's not enough. The password only offers a very basic level of protection. Thus, you must learn how to password protect files in Windows 7.

Why Do You Want to Password Protect Your Files/Folders in Windows 7

When you are sharing your laptop or computer with others, there's always a chance of human error - accidental deletion, mistaken modification, and more. To prevent this kind of error, you need to password protect some important files from information leaking.

What's more, you may encounter this kind of issue. You're sharing sensitive information over email with the wrong recipients. What's worse the spreadsheet contains personal information belonging to a lot of people. If this kind of file is leaking, what a pity. How can you minimize the risk? The answer is putting password protection on the file. Learn how easy it is to secure your files and folders with password protection and encryption.

Method 1. Password Protect Windows 7 Files with EaseUS LockMyFile

When it comes to password protection in Windows 7/8/10, you must take EaseUS LockMyFile into account. With it, password-protecting a file is a 1-second yet 1-click job. This software has a very easy and intuitive interface, which allows you to go through all the features on the left panel. Besides, this software can hide, lock, protect, and encrypt files, folders, or even a whole hard drive in Windows 7 comprehensively.

Exclusive data protection features in Windows 7/8/8.1/10/11 include:

  • Password protects a folder or file on an internal/external disk. The newly added files can be password protected automatically.
  • Hide private files/folders on a local disk, USB flash drive, or external hard drive. Make your folders completely invisible.
  • Lock a USB flash drive, internal disks, and even an external hard drive to protect the important files.
  • Encrypt files and folders to GFL or EXE format files with an advanced AES encryption algorithm.

You can download this password-protecting software and secure your files and folders with encryption.

Step 1. Launch EaseUS LockMyFile, enter the valid email, and set password to register. 

enter password

Step 2. Click Protecting File under the Local Disk. Select Protect File(s) ,Folder or drive from the right panel.

split partition - Step 2

A. Add file(s) or folder from the specific location.

protect file or folder 2

B. Click on the Protect Drive to add drive you want to protect. Select drive and click OK.

protect drive

Step 3. Check and confirm the files, folder, and drive that you want to protect.

split partition 3


If you want to unprotect the selected files, folder, or drive, tick the target data and click on the Unprotect button.

Method 2. Password Protect Windows 7 Folders with Built-in Tool

Windows 7 has a built-in tool - Folder Properties. With it, you can encrypt your folders and all the files within them. To encrypt a file or folder in Windows 7, 8, or 10, follow these steps:

Step 1. Right-click the target folder that saves your essential files, select "Properties".

Step 2. Go to the "General" tab > Click "Advanced".

Step 3. Check "Encrypt contents to secure data" > Click "OK" to confirm.

password protect windows 7 files with folder properties

Once you navigate to the encrypted folder, you will see a small yellow lock on the file icon. Also, when you add new content to that folder, it will automatically be password protected too.

Method 3. Password Protect Your Windows 7 Files with a .bat File

This method works in almost all Windows versions. But the process is a little bit difficult for computer novices. Follow the steps below to password-protect your folders and files in Windows 7. First, copy the code below:


title emily

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

if NOT EXIST MyFolder goto MDMyFolder


echo Are you sure to lock this 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


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

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

echo Folder locked

goto End


echo Enter password to Unlock Your Secure Folder

set/p "pass=>"

if NOT %pass%== emily goto FAIL

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

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

echo Folder Unlocked successfully

goto End


echo Invalid password

goto end


md MyFolder

echo MyFolder created successfully

goto End


Then, follow the steps to password protect your Windows files.

Step 1. Open a Notepad or .txt file or Text document, paste this code on a Notepad.

password protect windows 7 files with.bat - 1

Step 2. Save the Notepad file as Lock.bat (.bat Is Must)

password protect windows 7 files with.bat - 2

Step 3. Double-click the .bat file and a new folder will be created with the name MyFolder. Copy all your data you want to protect in that new folder named as MyFolder.

Step 4. Now double-click on the Lock.bat and when the Command Prompt appears, type Y and press "Enter".

password protect windows 7 files with.bat - 3

Now MyFolder will be hidden from your view, to access that folder double click on lock.bat. It will ask for a password enter your password (The default password is emily). You can change the password replace emily with a new password in the above code.

Method 4. Password Protect Your Folder By Compressing It

In fact, you can also set a password on your file if you are compressing it. Here, I'll show you how to compress and lock a folder using WinRAR.

Step 1. Right-click the target folder, and select "Add to Archive".

Step 2. Set the archive name, format, compress level, size, etc.

password protect file in windows 7 with compressing - 1

Step 3. To add a password to lock the folder, click "Set password > Enter Password > OK".

password protecting a file in windows 7 with compressing - 2

Your file/folder is now compressed, encrypted, and protected. Decompressing that file/folder is just as simple. All you need to do is input the password.


On this page, we briefly discussed the reason why you want to password protect your files in Windows 7. And you've got several solutions to protect your files with a password. If you are looking for an easy-to-use and professional folder protector, EaseUS LockMyFile is my recommendation. It works well on any version of Windows device.