How to Create a Password Protected Folder
How to Create a Password Protected Folder:
Hi friends today I will tell you how to lock a folder in windows without using any software.
To create Password protected folder you don’t require any software, notepad is enough to create Password protected folder in Windows, using batch file programming you can create it.
If more than one person is using a computer at that time if you want to protect you personal files/documents from other users, this trick will help you to protect your files
Step 1: Open your notepad (Go to start -> all programs -> accessories -> notepad or click windows key+r run window will open type notepad and hit enter).
Step 2: Copy below code and past it in your notepad.
title Folder how2doit
if EXIST “HTG Locker” goto UNLOCK
if NOT EXIST how2doit goto MDLOCKER
echo Are you sure you want to lock the folder(Y/N)
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren how2doit “HTG Locker”
attrib +h +s “HTG Locker”
echo Folder locked
echo Enter password to unlock folder
if NOT %pass%== PASSWORD123 goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” how2doit
echo Folder Unlocked successfully
echo Invalid password
echo Private created successfully
Here I am saving my file as myfolderlock.bat (Provide any name with .bat extension).
If you want to access that hidden folder, again double click on myfolderlock.bat file
It will ask for the password, enter the password and hit enter button (Password is PASSWORD123)
Note: Any one can access the Password by opening the batch file in notepad or any other text editor, it is better to hide myfolderlock.bat file in some secure location after hiding your files, I recommended you to store your batch in your mail and you can download it to your computer whenever you need to access your hidden files.
Thank you for visiting how2doit.in. If you find any mistakes help us by leaving a comment.
Don’t Miss : How to Sign in with a picture password in windows 8.