GiliSoft File Lock Pro

Lock selected Windows files and folders for local access control. Use File Encryption when you need a separate encrypted copy.

  • Lock or hide selected files and folders
  • Restrict changes with Protecting File
  • Create encrypted GFL or EXE output when needed
GiliSoft File Lock Pro

How to Password Protect Files and Folders in Windows 11, 10, 8 and 7

G GiliSoft Updated Oct 13, 2026 | Home>How-tos>Password-protect Windows files

Quick answer: can you put a password on a Windows folder?

Windows does not offer one universal, separate password prompt for every normal folder. First decide what you need: block access to a local folder, encrypt files for a Windows account, or send a password-protected copy to someone else. Those are different jobs.

Fastest choice: Use GiliSoft File Lock Pro > Local Disk > Locking File to restrict access to a selected local folder. Use its File Encryption tool if you need a separate encrypted GFL or EXE output for storage or transfer. Windows EFS and password archives are alternatives with different access and recovery rules.

Choose the protection that matches your goal

GoalMethodImportant limit
Control access to files in place on this PCFile Lock Pro > Locking FileLocal access control is not the same as an encrypted copy for sharing.
Encrypt files for your Windows user accountWindows EFS, where availableNo separate folder password; back up the encryption certificate.
Send or store a protected copyFile Lock Pro File Encryption or a password-protected archiveTest the exported file; the original may remain unprotected.
Hide a folder from casual viewHidden attribute or a .bat scriptNot password protection or encryption.

Method 1: Lock a folder with GiliSoft File Lock Pro

File Lock Pro separates Locking File, Protecting File, and File Encryption. For a folder you want to keep on the PC but restrict from ordinary access, use Locking File. Protecting File is for limiting changes such as editing or deletion; it is not the same workflow.

  1. Install the trial, open File Lock Pro and set or enter its master password.
  2. Choose Local Disk > Locking File.
  3. Select Lock Files/Folders and add the folder or files you want to restrict.
  4. Apply Set to lock, then test access from Windows Explorer with a non-critical folder first.
  5. Keep a separate backup and confirm that you know how to unlock the item before relying on the rule.
GiliSoft File Lock Pro Local Disk Locking File workspace with Lock Files/Folders control

Need an encrypted file you can move or share? Open More Tools > File Encryption, add the files or folder, choose GFL or EXE output, set an encryption password and test the result. This creates a separate protected copy; do not confuse it with locking the live folder.

File Lock Pro File Encryption workspace for creating GFL or EXE encrypted output

For the full interface walkthrough, see the File Lock Pro user guide.

Method 2: Use Windows EFS where available

Windows Encrypting File System (EFS) can encrypt a file or folder for a Windows account using an encryption certificate. It does not add a new password dialog to that folder. Microsoft says file encryption is unavailable in Windows Home editions; check the Windows edition and file system before starting.

  1. Right-click the file or folder, then open Properties > Advanced.
  2. If available, select Encrypt contents to secure data and apply the change.
  3. Back up the EFS certificate and private key through Windows before changing accounts, reinstalling Windows or moving the files.
  4. Confirm access from the intended Windows account and keep an independent backup of important data.
Windows Advanced Attributes Encrypt contents to secure data option for EFS

See Microsoft's EFS instructions and edition note. If the checkbox is unavailable, do not treat changing the folder name or attributes as equivalent encryption.

Method 3: Create a password-protected archive

An archive is useful when you need to send or store a protected copy instead of keeping a live Windows folder locked. In an archive tool that supports encrypted archives, add the files, set an archive password, create the output and test extraction. The source files remain in place unless you separately move or remove them.

Set a password while creating an encrypted archive

Do not send the password in the same message as the archive. Check the archive format and recipient's extraction software before sharing it.

Why a .bat folder locker is not password protection

A common batch-file trick renames a folder and changes its hidden or system attributes. The files are not encrypted, and anyone who can read or edit the script can inspect its password and reverse the commands. It can even make files harder to find without making them safer. Do not use this approach for private or important documents.

A note for Windows 7 and older PCs

The File Lock Pro product page lists Windows 7 as compatible, but Microsoft ended Windows 7 security support on January 14, 2020. Folder locking cannot replace operating-system security updates. If you still use an older PC, test the protection and recovery workflow carefully and plan a move to a supported Windows version.

Folder password FAQ

Does Windows have a built-in password for each folder?

No universal per-folder password prompt is built into normal File Explorer folders. EFS uses a Windows account and certificate on supported editions, not a new password for each folder.

Is EFS the same as File Lock Pro's folder lock?

No. EFS encrypts file contents for a Windows identity. File Lock Pro's Locking File controls local access to selected items; its File Encryption tool creates a separate encrypted output.

Can a .bat file securely password-protect a folder?

No. Batch-file folder lockers typically rename or hide the folder and expose the password in readable script text.

What should I use to share protected files?

Create and test an encrypted GFL or EXE output with File Lock Pro, or use an archive tool that supports encrypted archives. Locking a local folder does not by itself protect a copied file.

Lock files and folders with File Lock Pro

Try the Locking File workflow with a non-critical folder first. Use File Encryption when you need a separate encrypted output.