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

Posted on 2015-02-15
Medium Priority
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 200 total points
ID: 40611463
7Zip should be the answer.  Details here

Sadly TrueCrypt is no longer functioning.
LVL 97

Assisted Solution

by:Experienced Member
Experienced Member earned 200 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 49

Accepted Solution

dbrunton earned 1000 total points
ID: 40611476
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


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 49

Assisted Solution

dbrunton earned 1000 total points
ID: 40611485
LVL 25

Assisted Solution

NVIT earned 200 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)
LVL 37

Assisted Solution

bbao earned 200 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 200 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 49

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 http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_28617508.html#a40611476
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 97

Expert Comment

by:Experienced Member
ID: 40623487
Thanks George. I am always happy to help you.

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

777 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