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.

 LOCK  FOLDER

STEP:1
Create an empty folder in any one of your directory.

lock folder

STEP:2
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

STEP:3
Paste this code the text document created.

CODE:

cls
@ECHO OFF
title Folder Private
if EXIST “HTG Locker” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
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.
goto CONFIRM
:LOCK
ren Private “HTG Locker”
attrib +h +s “HTG Locker”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s “HTG Locker”
ren “HTG Locker” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

lock folder

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

STEP:5
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

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

STEP:7
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”.

STEP:8
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

STEP:9

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