Yes you read the title right :D.. In this tutorial Im gonna teach you how you can How to Password Protect Any Folder without Any Software. Its a very useful trick, instead of buying $50-$250 of folder lock softwares you can use this 🙂

Actually in this we will code a locker with batch programming. This Trick works on all Windows Platform..

How to Password Protect Any Folder without Any Software

1). Open Notepad and copy the given code below:-

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” gotoUNLOCK
if NOT EXIST MyFolder goto MDMyFolder
echo Are you sure to lock this 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 MyFolder “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
echo Enter password to Unlock Your Secured Folder 😀
set/p “pass=>”
if NOT %pass%== legendtricks goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” MyFolder
echo Folder Unlocked successfully 🙂
goto End
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End

NOTE :- In the above code ‘legendtricks’ is the password of your Folder Locker you and replace it with your desire password 😀 😉

2). Now save it as .bat extension for example mylocker.bat 

3). Now open your mylocker.bat , A new folder will be created with name MyFolder.

4). Copy all your data which you want to protect in that..

5). Now again open mylocker.bat , Now it will asks you weather you want to Lock that folder or not,just enter or type y from your keyboard and hit Enter .

6). Now the folder will be hidden and your data is safe. To access that folder you need to open mylocker.bat and enter the Password ( Default Password is :- legendtricks )

7). Just enter the password and you’re done !! 😀

Thats it !! 🙂 Enjoy..!