How To Lock a Folder With Password Protection Without Any Software

How To Lock a Folder With Password Protection Without Any Software

Learn How to lock a Folder with a Password without any software. You can lock folders in a lot of ways. But this one is cool and without software.
image

Locking a Folder with Password – Overview

There is a lot of software that will provide you this feature but there is a problem with that. if by any means that software is un-installed you might lose your personal data because the login credentials will be deleted. In this tutorial, you will learn to create your own method to lock a folder with password protection.

How to Create a Folder with Password Protection.

How To Lock a Folder With Password – Steps

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

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

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

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

Download Code

image

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

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

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.
image

Conclusion – You’ve Learnt How To Lock a Folder Without Any Software

So isn’t it cool? You can easily lock a folder with a 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.

1 Like

:smiling_face_with_three_hearts:

:desktop_computer: