Protecting a folder with a password is very useful for those who want to keep some information secure in a shared computer. Read on and follow these simple steps to protect the information you cherish the most.

Step 1
Open the Folder you Want to Protect

Open 'Windows Explorer' and go to the folder you want to protect.



Step 2
Create a 'New Text File'

Right-click inside the folder you want to protect, click on 'New', follow the direction line and then select 'Text Document' from the cascading menu. This action will create a new text file inside the folder.



Step 3
Open the 'New Text File'

Double-click on the text file to open it. Don't change the name just now and open it up.



Step 4
Paste on the Notepad the Text

Paste on the notepad the following text:

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-Here 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




Step 5
Locate 'Your Password Here' on the Notepad

Search for the sentence 'Your Password Here' in the lines of the code.



Step 6
Enter Your Future Password

Replace the line 'Your Password Here' with the password you would like to use to lock the folder.



Step 7
Save the File

Click on File and then click on 'Save as'.



Step 8
Save the File with this Name and Extension

Change the name of the file to 'FolderLocker.bat' and he 'Save as Type' should be on 'All files'.



Step 9
Open the .bat File and Answer Yes

Double-click on the '.bat File' to open it; it will take you to a screen where you have to put a Y and then press 'Enter'.



Step 10
Enter the Selected Password to Open the Folder

Double-click on the folder will take you to the password-request screen; just enter your password and it will grant you access to the folder.



This procedure can be done with as many folders as you want to keep secure in your computer.