There are many tools which will let your private folder password protected. But here we have a few steps to let you enable to do so without any tool.
Follow the steps to lock folder without any third party apps:
Now browse to the folder you made and create a text document inside it (notepad file).
Now you have to open that document and paste the following code it in and save . (Note do not change the code it may cause problems).
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)
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
echo Enter password to unlock folder
if NOT %pass%== Tech4Gamers goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” Private
echo Folder Unlocked successfully
echo Invalid password
echo Private created successfully
Save the code. Then open that text document again and change the password (default is Tech4Gamers) take a look at the following screenshot for better explanation.
Now “Save As” file using name Locker.bat (it will be a batch file) and change the save as type to “All files”. More precise explanation in picture.
Now put all your files which you want to hide in the folder automatically created and named as “Private”.
After that open locker file a dos interface will be opened press y then, then press enter.
Now all your files will be hid within the folder named “Private” if don’t then you have to go through control panel settings and check “Don’t Show hidden files and folder”.
To get access back to your files and data just open that locker file again in root folder. Then type your password and press enter. Here you go , locking and unlocking folders in few easy steps without any tool.
We have tried to keep it as simple as we can, hope you like it.