How to Create a Password Protected Folder Without Any Extra Software

Password Protected, Folder Lock, Password protectThis article briefs you about how you can password protect a folder and its impact on strengthening your security and privacy. The tutorial will help you to assign a password to your folders without using any extra or third-party software.

Password protection is an essential measure that users usually ignore to save their work time, but later pay off by compromising the crucial data. Illegitimate data access, unusual file changes, frequent data corruption, and data theft, loss or leaks are some of the common issues that an unprotected folder may face. Users usually prefer to create password protected folder by using third-party software, but you can also do it by using a Text Document. By using the Text Document and batch file method, you can keep your folders hidden by employing a quick batch script. By adopting this protection method, you can easily restrict the illegitimate folder access and enhance your local file security substantially. People share computer or store their sensitive data that give rise to situations that force them to password protect a folder or lock it.

How To Password Protect A Folder?

1. Before starting the process, create a folder that will house your protected folder. To create the same, right-click anywhere on the system’s hard drive, select ‘New Folder’ from the drop-down, and name it (Master for this tutorial).

2. Navigate into your Master folder and create a new Text Document by using the context menu.

3. Now, open the document, and paste the following code as it is:
title Folder Private
if EXIST ‘HTG Locker’ goto UNLOCK
if NOT EXIST Private goto MDLOCKER
echo Are you sure you 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.
ren Private ‘HTG Locker’
attrib +h +s ‘HTG Locker’
echo Folder locked
goto End
echo Enter password to unlock the folder
set/p ‘pass=>’
attrib -h -s ‘HTG Locker’
ren ‘HTG Locker’ Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End

4. Change the ‘PASSWORD_GOES_HERE’ text to your desired password and save the file as locker.bat.

5. Once you’ve successfully created the batch file, delete the original Text Document.

6. Run your batch file by double clicking on it, and it will create a ‘Private’ folder, when you will use it for the first time. You can store all your secret things in the ‘Private’ folder and run locker.bat again, once you’ve added the desired files.

7. Your PC will prompt you with a message asking that are you sure that you want to lock the folder, Press the ‘Y’ key to confirm and hit ‘Enter’ to lock your folder.

8. You will now observe that your Private folder has disappeared. You can run the script again to see the password prompted.

9. If it asks for it, enter the same password that you’re created in the above-mentioned steps and the Private folder will reappear. The script will just terminate if you enter an incorrect password.

How to See the Password Protected Files Again?

You might not know how to show system files, but any tech geek can quickly figure it out in the Folder Options. To see these files again, uncheck the box for ‘Show hidden files, folders, and drives’ and uncheck the ‘Hide protected operating system files’ box. You are recommended not to panic like an ordinary user, who will probably get scared of the warning messages that appear when you uncheck the boxes. The other ways to open the password protected folder is through opening the batch file and entering your password.

Obviously, it is not one of the most secured ways to hide your files, but at least it can offer basic password protection to the content that requires privacy. Sometimes, you may feel worried, when you will realize that the password that you’ve assigned for the protected folder is not there in your memory, or you’ve forgotten it. If something like this happens, simply right-click on the ‘locker.bat’ file and choose the ‘Edit’ option. On selecting the ‘Edit’ option, you will see the password that you’ve set in an earlier phase, use it or change the same to something that you can easily remember.