HomeHow to Guides

How to Password Protect Folder in Windows PC

Like Tweet Pin it Share Share Email

Are you worried of your personal data stored in your PC. Now its time to free from all those problems. There are a lot of methods that you can use to password protected folder. most of which requires use of some third-party software.  Now no need of buying expensive software.Here is a simply way to protect your folder from others without using any software.

So get started here:

How to Password Protect Folder in Windows 7, 8 & 8.1

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder
The following steps will help you in locking your folder.

Step-1: Creating a Folder in specified drive

Initially you have to create a folder(or choose a folder) which you wanted to lock in any of the Drive.

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder

In the above image i created a folder by name “test’

Step-2: Open the COMMAND PROMPT

Now open the Run dialog and press “CMD” without quotes.

Then a window will pop-up like the below image.

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder

Step-3: Choose the Drive in CMD

In this step you have to select the Drive , for doing it use the commands given below(Without quotes):

  • Press ” E: ” to select the E: drive,
  • Press ” D: ” to select the D: drive,.. etc..

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder

Step-4: Enter the Code in CMD

In this step, you should enter below code in the command prompt:

” cacls foldername /p everyone:n “(without quotes)

[in the code replace the foldername with your specified folder name ]
then press Enter. It will ask a question like this:

” Are you sure (Y/N)? “

now press ” Y “.

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder


Thats it… you have locked your folder now.
Now if you try to open the locked folder , it shows a pop-up windows like this…

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder

To Unlock the folder:-

you should follow the previous three steps(Step-1,Step-2,Step-3).
Then you should enter the below code in the command prompt:

” cacls foldername /p everyone:f ” (without quotes)

[in the code replace the foldername with your specified folder name ] 

then press Enter. It will ask the same question below:

“Are you sure (Y/N)? “

now press “Y”.

Lock Folder in Windows PC | How to Lock Files in Computer | Tech Tricks | Protect a Folder with Password | Password Protected Folder

Thats it… you have unlocked your folder now.

Must read :

    I hope this article might help you a lot. I tried our best to give a good description.  Stay tuned with UPDATING WORLD because many related post will be published very soon.

Thank you.!

Comments (3)

Leave a Reply

Your email address will not be published. Required fields are marked *