The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • 7 Game-Changing Finelo Alternatives Quietly Reshaping How You Learn Money

  • Why Finelo’s Approach to Gen Z Financial Literacy Is Completely Changing the Game

  • Why You’re Losing Money: The Surprising Truth About Financial Literacy Education in America

  • Why Millions Are Finally Using AI to Master High-Demand Skills

  • 7 Cybersecurity Bootcamps That Will Catapult Your Career in 2024

  • The Silent Revolution: 10 Workplace Learning Trends Quietly Reshaping Your Career

  • The Silent Crisis: Why Cybersecurity Pros Are Burning Out — And 10 Courses That Can Help

  • 8 Vital Strategies to Combat Cybersecurity Burnout Before It’s Too Late

  • The Silent Crisis Killing Cybersecurity Jobs: Why Half of Pros Are Burning Out

  • The Gold Rush: Why AI Governance Careers Will Eclipse Traditional Compliance

Digital & Mobile Technology
Home›Digital & Mobile Technology›How to Password Protect a Folder in Windows

How to Password Protect a Folder in Windows

By Matthew Lynch
June 5, 2023
0
Spread the love

As a Windows user, you may have files or folders containing sensitive or confidential information that you would like to protect. Password protection is a reliable way to safeguard your sensitive files or folders on your computer. Password protection ensures that only authorized users or those with the correct password can access the folder. In this article, we’ll show you how to password protect a folder in Windows.

There are different ways to password protect a folder in Windows, but we will discuss the two most commonly used methods – using built-in Windows features and using third-party software.

Method #1: Using Built-in Windows Features

This method involves using the built-in Windows feature called “File Explorer” to create a new partition or container file, then hiding this file from view, and finally, locking it with a password. Here are the steps to follow:

Step 1. Open the File Explorer by pressing the Windows key and the E key simultaneously.

Step 2. Create a new folder where you want to store your sensitive or confidential files.

Step 3. Navigate to the new folder and right-click on the empty space inside the folder.

Step 4. Select New and Click Text Document. This will create a new text document inside the folder.

Step 5. Rename the text document to whatever name you prefer and change the file extension from .txt to .bat. For example, if you want to name the new file “LockedFolder,” rename the file to “LockedFolder.bat.”

Step 6. Open the LockedFolder.bat file and copy and paste the following text into it:

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 you want 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

: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%== 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.

goto End

:FAIL

echo Invalid password.

goto end

:MDLOCKER

md Locker

echo Locker created successfully.

goto End

:End

Step 7. Edit the code and replace PASSWORD_HERE with your desired password. Please note that you should remember this password as you will use it to unlock the folder later.

Step 8. Save the LockedFolder.bat file and close it.

Step 9. Double click on the LockedFolder.bat file to run it, and a Locker folder will be created.

Step 10. Move all the files or folders containing sensitive or confidential information into the Locker folder.

Step 11. Double-click on the LockedFolder.bat file again to run it, and you will see a confirmation message asking if you want to lock the folder. Type Y or y, and press Enter to lock the folder.

Step 12. The Locker folder will now be hidden. To access the folder, double-click on the LockedFolder.bat file, type your password, and press Enter.

Note: This method uses a BAT file that can easily be edited or deleted. Ensure to keep it out of reach of unauthorized users.

Method #2: Using Third-Party Software

If you find the first method difficult to use, you can use third-party software such as 7-Zip, WinRaR, or VeraCrypt to password protect your folder. Here are the steps to follow:

Step 1. Download and install any of the password protection software.

Step 2. Create a new folder where you want to store your sensitive or confidential files.

Step 3. Open the software you installed and navigate to the new folder you created.

Step 4. Right-click on the folder and select “Add to archive” on the options menu.

Step 5. Set your password in the “set password” field when prompted.

Step 6. The software will create a new file with a protected archive extension. A password will be required to access the files or folders.

Conclusion:

By using any of the two methods discussed above, you can easily password protect any folder on your Windows computer. These methods can help you keep your sensitive and confidential files or folders safe and out of reach of unauthorized users.

Previous Article

Is the Windows Auto-Rotation Lock Grayed Out? ...

Next Article

How to Install VMware on Linux and ...

Matthew Lynch

Related articles More from author

  • Digital & Mobile Technology

    What is System Administration?

    May 12, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How to Create a ‘Hey Google, I’m Getting Pulled Over’ Shortcut for Android

    June 2, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How Fast Is 4G LTE Wireless Service?

    June 8, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    What Are Plugins, and How Do They Work?

    June 6, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How are Schools Prioritizing Data Backup and Recovery?

    February 1, 2022
    By Matthew Lynch
  • Digital & Mobile Technology

    6 of the Best Smart Gadgets to Bring Couples Closer Together

    August 3, 2023
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.