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:

First of all create a folder any where for base, it will act as root folder for all your content which you want to hide. See screenshot for better explanation.
Lock Folder


Now browse to the folder you made and create a text document inside it (notepad file).

How to Make text 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)
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=>”
if NOT %pass%== Tech4Gamers goto FAIL
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


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.

changing password in lock folder script


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.

Saving file as locker.bat

Now put all your files which you want to hide in the folder automatically created and named as “Private”.

private lock folder

After that open locker file a dos interface will be opened press y then, then press enter.

Folder Lock T4G

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.

Final Step Locking folder which is entering password

We have tried to keep it as simple as we can, hope you like it.

Previous articleMaking Thermal Paste In Home
Next articleNintendo Has 10 Epic Reasons For Its Backup Plan
Hardware enthusiast, Gamer, Writer. I enjoy picking up games, putting them back down, and then writing about it.