How to

How To Lock Folder Without Any Software

lock folder without any software
Written by staff

As we know there are lots of tools available that people are using nowadays to lock their desktop folders for privacy or any such purposes, but most of it are paid tools which halted the hands most of like us! However, I now going to tell you guys a deep secret which let you guys to lock folder with no tension in order to save your huhuhuh!

how to lock folder without any software

How To Lock Folder Without Any software – Step By Step Instructions:

First you need to create base folder (also referred as root folder) that you need to hide your total information. See the screenshots below for better understand.

Lock Folder Without Any Tool

Now going browse to the already created folder and after that create a text document inside it (notepad file).

lock folder

Now open up that document, paste a code that provided below and save it.

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%== Ageeky 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

lock folder free


Now one more time open up that document and change the password according to your wish.

folder lock on pc

Now “Save As” file and use name Locker.bat (it will be a batch file) and change the save as type to “All files”.

Then put all the files which are in to hide list in the folder automatically created and named as “Private”.

After that open up that locker batch file a cmd will be opened, type y there, then press enter.

trick to lock folder on pc

So here you go all your files will hide in the folder named “Private”.


To unhide your files and data just open that locker batch file again in root folder. Then type your password and press enter. And it’s all done.

How To Lock Folder Without Any Tool

Leave a Comment