To password protect a Folder inside Windows OS, there are many methods that can do that, most of which require the use of a 3rd Party software. This is a very simple trick, consisting of a .Bat File which is compiled by Notepad, that will allow you to hide your data and lock them with a Password with high security that you can set up.
How to Password Protect/Lock any Folder without any Software
1) Create a folder any where you want. (e.g: C:\WMSOFTPRO )
2) Navigate to that folder, and Create a New Text Document
3) Open the Text Document, Paste the following code inside it:
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%== WMSOFTPRO 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
4) Now change the RED Portion (WMSOFTPRO) with your password.
5) Now click File > Save as... and save it as Locker.Bat
6) After saving Locker.bat, Run it. You'll see a new folder called Private that is created.
6) After saving Locker.bat, Run it. You'll see a new folder called Private that is created.
7) Now Place all your content that you want to hide in Private folder.
8) Now Run the Locker.bat again, you'll be asked to lock the folder, Press Y
8) Now Run the Locker.bat again, you'll be asked to lock the folder, Press Y