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

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 47

Accepted Solution

dbrunton earned 250 total points
ID: 40611476

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 47

Assisted Solution

dbrunton earned 250 total points
ID: 40611485
LVL 23

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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

LVL 37

Assisted Solution

by:Bing CISM / CISSP
Bing CISM / CISSP 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 10

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 47

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 10

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 90

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you use the right mouse button (assuming you're right handed) to click something in Windows, you usually get what is called a "context menu".  It's called that because the items in the menu vary according to context, that is, according to where…
The Display applet of Windows 7 Control Panel has changed a great deal since Windows XP  (it was missing and more or less replaced in Windows Vista by the Personalization applet.)  Below is a screenshot of what the Display applet of Windows XP, whic…
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). …
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now