How to Lock Folders on a Computer to be Safe

How to Lock Folders on a Computer to be Safe 

Take a second to consider how much important information you have saved by locking the folder on your current computer. Bank information? Family photo? Financial documents?

As safe as your files feel on your PC, they are also the main target for malicious intentions. The password that protects your sensitive folder is a basic security step. Think of it as a virtual dome, which encrypts additional files or folders whatever you need to stay safe.

Read on to learn how to create password-protected folders to keep your precious files protected, and sneaky spies in the bay.

Method 1: Text Based Folder Key

Although Windows 10 does not allow users to protect folders by passwords by default, you can use batch scripts to lock folders using the password of your choice.

Start by navigating to the folder you want to lock. I will create a new folder to use as a virtual safe named Aman.

Double-click the folder. You will create your batch file in a directory that will store your locked folder. Create empty text documents in your folder by right-clicking the blank space and select New > Text Document .

In this document, copy and 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 your password, change your_password in the line slightly if NOT “% passed% == your_password” goto FAILED to your chosen password:

After you add a password, open File> Save As in your Notepad program. Give whatever name you want, the Locker in my case, but make sure you add the .bat extension to your file. In my case, I will name my file Locker.bat (making sure I include the extension).

Double-click the BAT file to create your Locker folder. This is the folder that will be locked with your password. You must now have a folder and file called Locker .

Place all your sensitive documents in this Locker folder. After you put your file, double-click your Locker.bat file again. The command prompt will open asking if you want to lock your folder. Enter Y and press Enter .

Poof! Your folder will disappear. This is a natural byproduct of your BAT file.

To access your file again, double-click your Locker.bat file. You will be asked to enter the password that you added when creating the file.

Voila! If you enter your password correctly, your Locker folder will reappear.

Note: This BAT file can be changed through your PC. That means other people familiar with this trick might be able to change your password. However, for the most part, this great little trick will add much-needed buffers to your most sensitive local documents!

So for How to Lock Folders on a Computer so you can safely apply on Windows XP / 7/8/10 and of course very successful thanks.

Leave a Reply

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