how can I password protect individual folders within Windows 7 SP1?

Posted on 2015-02-15
Last Modified: 2015-02-21
Hello and Good Evening Everyone,

            I wish to password protect certain folders on my main computer running Windows 7 SP1.  With that goal in mind, how may I go about doing this?  Or, will I need a 3rd party program to password protect individual folders on the hard drive?  

            Any shared input to this question will be greatly appreciated.

            Thank you

Question by:GMartin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +4
LVL 50

Assisted Solution

jcimarron earned 50 total points
ID: 40611463
7Zip should be the answer.  Details here

Sadly TrueCrypt is no longer functioning.
LVL 94

Assisted Solution

by:John Hurst
John Hurst earned 50 total points
ID: 40611466
Another solution is to move the folders to a place where a Standard User cannot access. Now make a Standard User Windows Account that users (not you) use. Log off when done with your computing so that other users must log on as standard and then not be able to access your private folders.
LVL 48

Accepted Solution

dbrunton earned 250 total points
ID: 40611476
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.


Author Comment

ID: 40611477

             Thanks so much for the replies.  Incidentally, where will I need to go to download 7Zip?


Author Comment

ID: 40611482

         Oh, just one more important detail left out here.  The folders contain uncompressed or regular files.  Will I still be able to use 7Zip to password protect them?


LVL 48

Assisted Solution

dbrunton earned 250 total points
ID: 40611485
LVL 24

Assisted Solution

NVIT earned 50 total points
ID: 40611490
Built-into Windows 7 Pro and up is Encrypting File System (EFS)... is a powerful tool for encrypting files and folders on client computers and remote file servers. It enables users to protect their data from unauthorized access by other users or external attackers.

How to Encrypt Files on Windows using Encrypting File System (EFS),news-18314.html
LVL 37

Assisted Solution

bbao earned 50 total points
ID: 40611509
> 7Zip should be the answer.

this is a kind of password protection, but it needs to extract individual or all files/folders every time you need them, which can be time consuming if the files are large. it also needs addtional temporary space for unzipping the files.

> Another solution is to move the folders
to a place where a Standard User cannot

this way works if you could make sure the computer is always on, or in other words, you don't care about physical access to the computer. as the files are not encrypted on the file system of the computer, anyone could read it once the person has physical access to the computer's hard disk, e.g. removing the HD and attaching it to another computer will allow everyone to see any files on the drive, though the NFTS based drive does have some permissions applied when the its OS is up.

EFS should be workable in this situation. If the files are encrypted in an EFS applied folder, then only the current user (the owner who created the EFS folder and saved files) is able to access the files. physical access to the HD does not work as the files are encrypted bit by bit on the HD.

if other users also want to access the files, they can be readable or writable via a network share once a place-holder account (not the owner's accout, the same kind of account that John recommended above) is also allowed to access the files under certain NTFS permissions.

for more information about EFS, see below.
LVL 11

Assisted Solution

Maclean earned 50 total points
ID: 40611550
If on a domain I suggest to create a security group for your data, and have your own share for this data, rather than making a spiders web full of individual NTFS permissions on sub folders.

If on a local workstation and you wish to hide private information, perhaps try out "Lock A Folder" from the Google Code site, which still works for Windows 7 (Abandoned after this)

Author Comment

ID: 40619530
Hello and Good Afternoon Everyone,

             I sincerely apologize for the delay in responding to this post.  After doing some additional research on YouTube, I found a video which demonstrates how to password protect any folder on a system running Windows 7 using a simple batch file.  I have tried out this batch file and it does work.  While it certainly achieves my goal, I do want to make sure it is safe and does not pose any kind of threat or security issues with my pc.  With that in mind, would someone mind going over the actual code of this batch file?  The code within it is as follows:

@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­09D}" GOTO UNLOCK
echo Folder Created.
echo Are you sure you want to lock the folder? (Y/N)
set/p "cho="
IF %cho%==y GOTO LOCK
IF %cho%==N GOTO END
IF %cho%==n GOTO END
echo Invalid Choice.
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­09D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­09D}"
echo Folder Locked.

echo Enter password to unlock the Folder :
set/p "pass="
IF NOT %pass% == YourPassword GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­09D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­09D}" Locker
echo Folder Unlocked Successfully.
echo Invalid Password!

md Locker
echo Folder created.


Thanks so much in advance for any further attention given to this post.  I look forward to reviewing everyone's shared thoughts regarding this batch file obtained from YouTube.

LVL 48

Expert Comment

ID: 40619610
That isn't a password protected folder.

What the batch file is doing is hiding the folder from Windows Explorer.  Most normal users wouldn't know it is there.  An experienced user would be able to find it if he was aware there was a hidden folder.

This is also the same solution I posted above at
LVL 11

Expert Comment

ID: 40619638
Have you tried the lock a folder app as per earlier comment? Or the other suggestions from others to get a 3rd party app perhaps?

Author Comment

ID: 40623469
Hello and Good Afternoon Everybody,

               Technically speaking, everyone actually answered my question.  As such, this is a tough one because of my need to always be fair to the people who are instrumental in the resolution of my question.  I hope that I was fair enough in the allocation of points that were split up.

               With respect to what was used and worked for my needs,  I utilized the batch file outlined in the link given by dbrunton which was fully displayed in one of my follow up questions.  The other members of my household are average users of the computer.  Therefore, the steps carried out will be sufficient for privacy of specific folders and files.  

               Thanks again for the feedback.

LVL 94

Expert Comment

by:John Hurst
ID: 40623487
Thanks George. I am always happy to help you.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question