Lock Folder without software

Hello Friends, we would know how you can lock folder or may create a private folder that is only accessible with a password. There are many available softwares that helps you to keep your Files and Folder safe but you should buy them or install them.
So, you don’t have your own source of locking a folder you can access them through 3rd party.

Here, you can lock folder which has a password and can save your files and folders imported to it as an hidden things.

We would go step-by-step. For easily accessible I have taken some screen shots so you can use them to make your work easy.


Create an empty folder in any one of your directory.

lock folder

Open the folder and create a text document in the folder. You can create it by simply
Right click -> New -> Text document.

lock folder

Also Check : Dual WhatsApp On single phone OgWhatsApp

Paste this code the text document created.


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

lock folder

change the password where it is written “PASSWORD_GOES_HERE” on 23rd line and keep
your password.

Now save this document with extension “locker.bat”. Hence a batch file is created. So you would get the file with name “file.locker.bat”.

lock folder

Now delete the original text document and stay only with a batch file.

Open the batch file ,So command prompt is opened. And your private folder is created. Now place the folders and files you want to make private in this
“private folder”.

Again open the batch file and it would ask you “Do you want this to be private” Type Y and press enter. So your folder is hiddened out.

lock folder


To open the folder ,double click on batch file and enter you password. If the password is true it will open the folder else it would just terminate.

Hence, your Private folder is created.

Also read : Folder Colorizer : Give different colors to folders !


Leave a Reply