How to Password Protect a Folder on your Computer

Do you use a public computer system for blogging at home? Do you share your computer system at home with your friends and relations? Has any one mistakenly delete your files and folders on your computer without your consent? This is the time you need to learn how to password protect your folders so that you can prevent unauthorized usage of your files.
Here i will teach how to hide a folder on your computer without using any software. This can prevent other people from seeing and deleting your secret files

How to Password Protect a Folder on your Computer

Step 1
Create a folder and name it. Inside the folder, create a notepad, copy and paste the following code below in the notepad

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

Step 2
Change the text ENTER PASSWORD HERE in the code above and replace it with your password

Step 3
Save the notepad with a .bat extension. That is for example namefolder.bat use any name you feel like but make sure it is save with a .bat extension. It will now generate another file name locker.

Step 3
Now delete the notepad your created leaving the .bat file inside the folder.

Step 4
Double click on the .bat file and a folder named Private will be created
Inside this folder you can now copy and paste all the files and folders you want to hide.
Step 5
After pasting your files, double click on the .bat file and this will prompt you to lock the folder. Type Y to lock it or type N to unlock it and hit enter.
 Step 6
When you choose Y and hit enter, you have lock the folder. When you want to open the folder, double click on the bat file again, you will get this dialog box below.

Step 7
Just enter your password and hit enter
The locker folder will reveal all the contents in it and you can also add more files and folders which you want to hide.

You should also try to name this folder with a unique name that will disguise it and make anybody think it is not useful. This is because some tech gurus can still reveal all your hidden files if they suspect that you are hiding something.

No comments

Powered by Blogger.