Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot
    Unlocking Insights: Creative Ways to Collect Customer Data

    Unlocking Insights: Creative Ways to Collect Customer Data

    May 30, 2025
    What Successful Shops Do Differently

    What Successful Shops Do Differently

    May 30, 2025
    🎧 How to Download Songs on Spotify for Offline Listening (2025 Official Method)

    🎧 How to Download Songs on Spotify for Offline Listening (2025 Official Method)

    May 12, 2025
    Facebook X (Twitter) Instagram
    • About
    • Contact
    • Career
    Facebook X (Twitter) Instagram Pinterest LinkedIn WhatsApp
    Geeker Mag.
    • PC & Mobile
      1. Windows
      2. Browser
      3. Linux
      4. Office 365 & Web
      5. Hardware
      6. Mobile Apps
      7. View All
      Fix - Nvidia Driver 576.02 Black Screens & Other Issues (HOTFIX)

      Fix – Nvidia Driver 576.02 Black Screens & Other Issues (HOTFIX)

      April 22, 2025
      Windows 11 Update KB5055523 Unexpectedly Creates inetpub Folder

      Windows 11 Update KB5055523 Unexpectedly Creates inetpub Folder – Explained

      April 12, 2025
      Install Windows 11 Without a Microsoft Account (24H2/25H2)

      Install Windows 11 Without a Microsoft Account (24H2/25H2)

      April 2, 2025
      How to Restore the Old UI in Discord (Step-by-Step Guide)

      How to Restore the Old UI in Discord (Step-by-Step Guide)

      April 1, 2025
      How to Enable and Use the New Profile Manager in Firefox v138

      How to Enable and Use the New Profile Manager in Firefox v138

      April 30, 2025
      Microsoft Is Testing Copilot Integration in Edge’s New Tab Page — Here’s How to Try It

      Microsoft Is Testing Copilot Integration in Edge’s New Tab Page — Here’s How to Try It

      April 24, 2025
      How to Completely Disable Leo AI in Brave Browser (Step-by-Step Guide)

      How to Completely Disable Leo AI in Brave Browser (Step-by-Step Guide)

      April 8, 2025
      best browser for security

      9 The Best Browsers for Security and Privacy in 2025

      April 3, 2025
      Linux Security In-Depth: 5 Essential Steps You Need to Take

      Linux Security In-Depth: 5 Essential Steps You Need to Take

      May 17, 2023
      🎥 How to Create a Microsoft Account in 2025 – Watch the Step-by-Step Video

      How to Create a Microsoft Account in 2025 – Detailed Video

      May 5, 2025
      How to Delete Your Microsoft Account Permanently - 2018

      How to Delete Your Microsoft Account Permanently in 2025

      May 5, 2025
      How to Make Your Existing Microsoft Account Passwordless (Step-by-Step Guide)

      How to Make Your Existing Microsoft Account Passwordless (Step-by-Step Guide)

      May 3, 2025
      Your Subscription has been cancelled microsoft 365

      Microsoft 365 Subscription Cancelled Pop-up (Its a Bug)

      April 11, 2025
      Check for POPCNT CPU Instructions Before Installing NVIDIA Drivers to Avoid BSOD

      Check for POPCNT CPU Instructions Before Installing NVIDIA Drivers to Avoid BSOD

      August 5, 2024
      How to Check What Motherboard Do I Have in Windows 11/10

      How to Check What Motherboard Do I Have in Windows 11/10

      January 17, 2024
      8 Best SSDs for Laptops 2023 (256 GB to 2TB)

      8 Best NVMe M.2 SSD for Gaming Laptop 2023 (256 GB to 2TB)

      April 29, 2023
      best gaming graphics cards for pc

      Top 8 Graphics Cards for PC Gamers

      September 29, 2021
      Spotify AI Playlist feature.

      Is Spotify’s AI Playlist Missing or Not Showing? Here’s What You Need to Know

      April 24, 2024
      How to set Microsoft Copilot as default assistant on Android

      You can set Microsoft Copilot as Default Digital Assistance on Android

      March 5, 2024
      The Best 5 AI Photo Editing Apps of 2024

      5 Best AI Photo Editing Apps Android & iOS – 2024

      January 3, 2024
      How to View Wifi Password on Android Phone

      How to View Wifi Password on Android Phone

      October 12, 2023
      How to Fix iPhone Keyboard Lagging Issue After iOS 18 Update

      How to Fix iPhone Keyboard Lagging Issue After iOS 18 Update

      November 15, 2024
    • Internet
      1. Web Services
      2. Social Media
      3. Useful Sites
      4. G Suite
      5. View All
      How to Remove Background in Canva (Free & Pro Methods)

      How to Remove Background in Canva (Free & Pro Methods)

      April 30, 2025
      4k video downloaders failed to download youtube videos

      4K Video Downloader Failed to Download Videos (April 2025)

      April 26, 2025
      YouTube Videos Stuck at 144p? YouTube Confirms Issue

      YouTube Videos/Shorts Stuck at 144p? YouTube Confirms Issue

      March 20, 2025
      YouTube desktop new design.

      YouTube is testing a redesigned Watch Page for Desktop (Again)

      June 8, 2024
      How to Delete Instagram Account Permanently in 2023

      How to Delete Instagram Account Permanently in 2023

      October 23, 2023
      How to Create Stunning Visuals for Instagram in 2023

      How to Create Stunning Visuals for Instagram in 2023

      March 23, 2023
      How to Open Facebook app links in Chrome or Edge

      How to Open Facebook App Links in Android’s Chrome or Edge Browser

      March 8, 2022
      How to Add Music to Instagram Posts (Officially)

      How to Add Music to Your Instagram Posts (Officially)

      November 28, 2021
      5 Safe Sites to Download Rainmeter Skins in 2024

      5 Safe Sites to Download Rainmeter Skins in 2024

      January 18, 2024
      websites like thinkgeek 2019

      18 Best Websites like ThinkGeek (Alternatives ) 2024

      January 17, 2024
      best search engine for finding people online

      11 Best Free People Search Engines to Find a Person – 2024

      January 9, 2024
      best free movie streaming sites 2018

      18 Best Free Online Movie Streaming Sites 2024

      January 9, 2024
      Gmail's New "Manage Subscriptions" Feature: An Easy Way to Declutter Your Inbox

      Gmail’s New “Manage Subscriptions” Feature: An Easy Way to Declutter Your Inbox

      April 24, 2025
      help me write gmail

      How to Disable Gemini “Help Me Write” in Gmail

      January 21, 2025
      Google is sunsetting gmail

      Is Gmail Shutting Down in 2024? Truth Explained

      February 25, 2024
      Gmail @Mention Not Working - Fix 2023

      Gmail @Mention Not Working – Fix 2023

      October 6, 2023
      Vidnoz AI: Revolutionizing Video Creation with AI in 2024

      Vidnoz AI: Revolutionizing Video Creation with AI in 2024

      May 22, 2024
      How to Get Blooket Hacks in School Chromebook 2024

      How to Get Blooket Hacks in School Chromebook 2024

      January 17, 2024
      10 The Best Discord Servers to Join in 2023

      12 The Best Discord Servers to Join in 2024

      January 15, 2024
      How to Find Someone Online using their Picture

      How to Find Someone Online using their Picture

      April 5, 2023
    • Gadgets
      1. Earbuds
      2. Headphone
      3. Smartwatch
      4. Accessory
      5. View All
      TOZO Open EarRing Review: Lightweight Wireless Earbuds with Deep Bass & 40-Hour Battery

      TOZO Open EarRing Review: Lightweight Wireless Earbuds with Deep Bass & 40-Hour Battery

      October 31, 2024
      TOZO Tonal Fits T21 Wireless Earbuds Review: Big Sound, Big Battery, Budget Price

      TOZO Tonal Fits T21 Wireless Earbuds Review: Big Sound, Big Battery, Budget Price

      March 26, 2024
      TOZO T6 True Wireless Earbuds

      TOZO T6 True Wireless Earbuds, Lightweight, 45 hours battery, Wireless charging

      December 22, 2023
      TOZO T20 - True Wireless Earbuds with Wireless Charging Case

      TOZO T20 – True Wireless Earbuds with Wireless Charging Case

      October 24, 2023
      TOZO HA1 Headphones Bluetooth 5.4 and 70-Hour Battery for Under $80!

      TOZO HA1 Headphones Bluetooth 5.4 and 70-Hour Battery for Under $30

      September 10, 2024
      TOZO OpenEgo True Wireless Earbuds

      TOZO OpenEgo: True Wireless Earbuds with 30H Battery Life, Comfort Meets Hi-Fi Sound

      April 22, 2024
      Tozo HT2 Noise Cancelling Wireless Headphones

      Tozo HT2 Noise Cancelling Wireless Headphones

      December 23, 2023
      TOZO S5 Smartwatch: Round Dial, Bluetooth Fitness Tracker, Calling Features

      TOZO S5 Smartwatch: Round Dial, Bluetooth Fitness Tracker, Calling Features

      August 9, 2024
      TOZO S3 - Smartwatch Bluetooth Calling & Fitness Tracking

      TOZO S5 Smartwatch: Round Dial, Bluetooth Fitness Tracker, Calling Features

      November 17, 2023
      Clicks Blackberry Style iPhone Keyboard Case

      Clicks Game-Changing Blackberry Style iPhone Keyboard Case

      January 7, 2024
      4 Most Elegant Microsoft Surface Duo Cases and Covers

      4 Most Elegant Microsoft Surface Duo Cases and Covers

      November 19, 2020
      Tozo W1 - Fast Charging Wireless Charger for Samsung | iPhone | AnyPhone

      Tozo W1 – Fast Charging Wireless Charger for Samsung | iPhone | AnyPhone

      July 12, 2023
      Tozo C2 - The Best USB-C 65W Fast Foldable Wall Charger 2023

      Tozo C2 – The Best USB-C 65W Fast Foldable Wall Charger 2023

      July 1, 2023
    • AI
      How AI Can Help Writers Be Better

      How AI Can Help Writers Be Better

      May 6, 2025
      How to Create Ghibli Images for Free ChatGPT (No Skills Needed!)

      How to Create Ghibli Images for Free ChatGPT (No Skills Needed!)

      April 5, 2025
      deepseek login problem

      Gmail Not Receiving DeepSeek Verification Code Fix – DeepSeek Login Problem

      January 31, 2025
      Copy of USE OLD COPILOT

      How to Use Old Version of Microsoft Copilot

      December 2, 2024

      How to Generate Unlimited AI Images for Free: With This Method

      November 26, 2024
    • Gaming
      How to Enable Voice Chat in Roblox (Full Guide for 2025)

      How to Enable Voice Chat in Roblox (Full Guide for 2025)

      May 6, 2025
      🎮 How to Fix Game Share Locked Issue on PS5 (Step-by-Step Guide)

      How to Fix Game Share Locked Issue on PS5 (Step-by-Step Guide)

      April 18, 2025
      How to Fix PS5 Randomly Turning Off While Playing Games – Quick & Easy Guide

      How to Fix PS5 Randomly Turning Off While Playing Games – Quick & Easy Guide

      April 17, 2025
      How to delete roblox account

      How to Delete Roblox Account in 2025 (Four Methods)

      April 12, 2025
      Assassin’s Creed Shadows Bug: NPC Does Not Die After Assassination

      Assassin’s Creed Shadows Bug: NPC Does Not Die After Assassination

      April 3, 2025
    • More
      1. Crypto
      2. Wallpaper
      3. View All
      6 Industries that Use Cryptocurrency for Safe and Fast Transactions

      6 Industries that Use Cryptocurrency for Safe and Fast Transactions

      October 24, 2023
      Download Microsoft 50th Anniversary Wallpapers

      Download Microsoft 50th Anniversary Wallpapers

      April 6, 2025
      Windows 11 AI-themed wallpapers

      Windows 11 New Wallpapers Leaked Online (Download in high-res)

      May 20, 2024
      22 Best Rainmeter Clock Skins

      22 Beautiful Rainmeter Clock Skins for Rejuvenating Your Desktop Look

      June 1, 2021
      Microsoft Design - Download Official Backgrounds Curated by Microsoft Design Team

      Microsoft Design – Download Official Backgrounds Curated by Microsoft Design Team

      September 17, 2020
    • DONATE!
    Geeker Mag.
    Home»How to»How to Password Protect a Folder in Windows 10 (Three Ways)
    How to

    How to Password Protect a Folder in Windows 10 (Three Ways)

    Viney DhimanBy Viney DhimanOctober 1, 2018Updated:June 18, 20213 Comments6 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    how to password protect a folder in windows 10
    Image: appducate.com
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Want to hide folders from your family? Make them password protected. The following blog post will guide you how to Password Protect a folder in Windows 10.

    how to password protect a folder in windows 10
    Image: appducate.com

    Sometimes your computer has lots of sensitive information it can bank information, financial documents, family photos, or some personal picture of you with your girlfriend ????

    No doubt your data is secured, but it is always good to keep yourself on the safe side. Password protecting your folders having sensitive information add a necessary layer of security. Password protect a folder works like a virtual vault, which hides whatever is inside the folder.

    Contents show
    How to Password Protect a Folder in Windows 10
    1. Quick workaround (Batch Script)
    2. Zip Folder Lock
    3. Use Hide files and folder feature

    How to Password Protect a Folder in Windows 10

    Wondering how to create a password protected folder? It’s super easy to do. In upcoming lines, I’m going to teach possible ways to put a password on a folder.

    1. Quick workaround (Batch Script)

    Windows 10 with default settings, doesn’t allow users to set a password on a file, but with a quick workaround you can to do.

    All you need to do is write a batch script using a notepad. Here’s what you need to do:

    1. To get started you need to head over to the folder on which you want to put a password. For this tutorial, I’m creating a new folder named as ‘Test.’

    2. Open the folder by making a double click. Inside the folder, you need to create a new text file in which you need to type the code.

    create text file

    To create a text file, make right click on the empty space inside the folder and select New -> Text Document.

    How to Password Protect a Folder in Windows 10

    Inside text document, you need to copy-paste the following code:

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

    To set a password, you need to replace your password with “Your Password” in the next line:

     if NOT “%pass%==your_password” goto FAIL

    enter password

    After adding a password into the code, you need to save the file. For that, click on the File -> Save As. You will be asked to give a name to this file. Name it whatever you want, Locker sounds fine to me.

    save file

    Next, save the file with .bat extension. Since I’m naming it Locker so it will look like “Locker.bat.”

    Now, you need to double click on the BAT file which you created inside your folder using the above steps. This will create a new folder with the same name. This is going to be your password protected folder.

    How to Password Protect a Folder

    Copy-paste all your essential documents inside this folder. Once done, again double click on the Locker.bat file. A quick command prompt window will launch asking for your permission.

    Password Protect a Folder in Windows 10

    Type Y and hit enter. And your folder will instantly disappear.

    Now you might be wondering how to get the password protected folder back, right? Double click on the .bat file again. You will be asked to enter the password, and if you type the correct password, it will appear.

    Password Protect a Folder

    Note: This is a useful trick, but .bat can be changed from the computer. It means anyone aware of this workaround can easily unlock folder.

    2. Zip Folder Lock

    In the above workaround, we used a default text editor that comes preinstalled in every person of Windows OS. In this method, we will make use of popular file archiving tool named as 7-zip

    Usually, we use 7-zip to extract the file and unzip the folder. The good thing about this program is that also provides an option to password protect folders. Here’s what you need to do to password protect a folder:

    1. Download and install 7-zip using this link.

    2. Launch 7-zip File manager on your computer.

    3. Next, navigate to the folder for which you want to add a password and then click on the Add option available on the upper right corner.

    add

    This will open “Add to archive” window. Here, you need to head over to ‘Encryption section‘ and enter the secure password of your choice.

    Once you’re done, click on the OK button. In the same folder location, you will get a zip file of the same name (original folder).

    Password Protect a Folder in Windows 10

    As you have created a password protected zip file, you can move the original folder to trash (delete it).

    Note: It is suggested that always put all the important and sensitive data into a separate folder and then zip the file. If you don’t do that, then at the time of extractions all the file will be scattered.

    To extract the zip file, it is not mandatory that you need to a 7-zip program. You can use any archiving tool that supports zip file to extract your password protected folder.

    put password on a folder

    At the time of unzipping, you will be asked to enter the password. Enter the correct password, and you will be able to access the files inside the folder.

    3. Use Hide files and folder feature

    With the method discussed above, you learn how to create a password protected folder. With this method, you can add a layer of security by hiding the folder.

    Here’s what you need to do:

    1. Right click on the folder which you want to hide and select Properties.

    2. Next, head over to Attributes section and tick the box for Hidden.

    How to Password Protect a Folder in Windows 10

    When the “Confirm Attribute” dialog box opens up, make sure “Apply changes to this folder, subfolder, and files.”

    Click on the Apply button and then OK.

    Your folder will disappear in no seconds. Now you might be wondering, how to view it back, right? No worries, do this:

    3. In Windows File Explorer, you need to head over to View tab; you will find the option in the ribbon. Here, you need to tick box for “Hidden times“. This will instantly bring back the original folder.

    unhide folders in windows 10

    In case, you want to unhide the folder, then again launch the Folder Properties and uncheck the same option hidden option.

    Check out: How to View Hidden Files in Windows 10

    That’s it!

    These are some of the easy workarounds which you can use to create a password protected folder. It is upto you which method you want to employ.

    Find this my blog post how to put a password on a folder in Windows 10 useful? Is there any other method you’re using to put a password on a folder? Feel free to share your thoughts in the comments.

    Windows 10
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Delete Cookies on Chrome, Firefox, Edge, and Safari
    Next Article How to Upload HD Photos & Videos to Facebook from Phone – 2019
    Viney Dhiman
    • Website
    • Facebook
    • X (Twitter)
    • Instagram
    • LinkedIn

    Viney Dhiman, the mind behind GeekerMag, is a seasoned content writer with over 12 years of experience. Specializing in simplifying complex tech concepts, he covers Windows OS, Android, iOS, web apps, and product reviews. His work can be found on popular tech websites like Gizmodo and The Verge, and he has been interviewed by the Microsoft Edge team.

    Related Posts

    Best VPN for Windows 10
    Windows

    10 Best Free VPNs for Windows 11/10 PC – 2025 (Updated)

    January 3, 2025
    TRANSLATE PDF FILE TO DIFFERENT LANGUAGE
    How to

    How to Translate PDF Files into Any Language (Workaround)

    December 30, 2024
    How to Get Copilot on Your Windows 10 Taskbar.
    Windows

    How to Get Copilot on Your Windows 10 Taskbar (Right now)

    June 6, 2024
    View 3 Comments

    3 Comments

    1. the economy on March 6, 2020 9:41 pm

      Asking questions are truly nice thing if you are not understanding anything entirely, except this article offers nice
      understanding yet.

    2. Charles on April 9, 2020 6:19 am

      I found this Bat file to password a folder long time ago and I understood 99%, the 1% I could not get working is the usage of

      attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
      and
      ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”

      I have found out this Control Panel was used in Windows version prior to Windows 10 I have now. I searched the C: drive in it’s entirely and did not find anything existing. Also with today’s PC manufactured the D: drive is solely for OS and the D: drive is for all the user folders I want to Password protect. This requires for the Control Panel to be totally qualified if it exist on the C: drive. What can you tell me about the reason for the usage of this Control Panel file. Once I resolve this issue I believe this batch file will work as advertised. So far I have spent a ton of hours with this because there is not much else I could find to do this. Your attention to this matter will be greatly appreciated 2020 04 08 at 1750 hrs Charles

      • Alex on May 10, 2020 11:19 pm

        It works, I just tested it.

        The piece of code you are referring to is a windows registry edit, to tell windows how to display the folder.

    Trending Posts
    How AI Can Help Writers Be Better

    How AI Can Help Writers Be Better

    May 6, 2025
    How to Enable Voice Chat in Roblox (Full Guide for 2025)

    How to Enable Voice Chat in Roblox (Full Guide for 2025)

    May 6, 2025
    🎥 How to Create a Microsoft Account in 2025 – Watch the Step-by-Step Video

    How to Create a Microsoft Account in 2025 – Detailed Video

    May 5, 2025
    How to Delete Your Microsoft Account Permanently - 2018

    How to Delete Your Microsoft Account Permanently in 2025

    May 5, 2025
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Most Popular
    Fix - Lenovo Camera Not Working in Windows 11/10 in (2024)

    Fix – Lenovo Camera Not Working in Windows 11/10 in (2024)

    January 10, 2024
    How to Disable Incognito Mode of Chrome in Windows 10 - 2020

    How to Turn Off and Disable Google Chrome Incognito Mode in Windows 11/10

    February 10, 2020
    Error Code: DLG_FLAGS_INVALID_CA (Explained | Resolved)

    Fix – Error Code: DLG_FLAGS_INVALID_CA in Windows 11/10 (Edge and other )

    January 10, 2024
    Our Picks
    Unlocking Insights: Creative Ways to Collect Customer Data

    Unlocking Insights: Creative Ways to Collect Customer Data

    May 30, 2025
    What Successful Shops Do Differently

    What Successful Shops Do Differently

    May 30, 2025
    🎧 How to Download Songs on Spotify for Offline Listening (2025 Official Method)

    🎧 How to Download Songs on Spotify for Offline Listening (2025 Official Method)

    May 12, 2025

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Facebook X (Twitter) Instagram Pinterest WhatsApp Telegram
    • Privacy Policy
    • TOC
    • Corrections Policy
    • Editorial Guidelines
    • Fact Checking Policy
    © 2025 Geeker Mag. | Maintained by Viney Dhiman.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.