How To Lock a Folder Without Any Software

Privacy is the main concern of the present age. We all have some data that we want to keep secure or feel embarassed or somewhat vulnerable if such data are exposed to unrelated souls. We can protect them by hiding the folder, making a huge list of sub tree folders, chnaging the extension of the file,hiding in image file,securing with passwords, encryption and so on to my knowledge.As the methods list goes on , the apps and software list also grows likewise. But in case you dont have access to such softwares or you dont get time to download such software then the following method works just fine. Read the full post.

How To Lock a Folder With Password – Steps

Step#1 Create a Folder name ‘PRIVATE’ inside of folder you want to save your content.

Step#2 Now open ‘Note Pad’ or any other ‘Text Editor’. Remember to create that notepad file outside that folder.

Step#3 Copy the below code and paste it in that Note Pad file by typing your password in “CHANGE_YOUR_PASSWORD”.

//code from next line copy from there

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

//code ends in above line

Step#4 Now save this file as “LOCKER.BAT”.

Step#5 Once you did that delete your Notepad file because there will be a BAT file to use.

Step#6 Now run that LOCKER.BAT file and you will see a CMD window. In there Press ‘Y’ to lock the folder. Every-time when you need to see your private data you have to run that file and enter the password to access your private data.


So isn’t it cool? You can easily lock a folder in few clicks. Complete folder protection without any software. Let us know if you faced any issues during folder locking. You can easily save your personal documents and files inside that folder and lock them.



Leave a Reply

You have to agree to the comment policy.

2 × 1 =