So in this tutorial, we need a way to create hidden password protected folders which only we can access. And that is exactly what we will learn in this post.

With this
 trick, you can create a secure password protected folder in Windows which no one except you can access. To use this trick, follow the instructions given below:-
 

Ø  1.  Open Notepad.
Ø  2.  Copy and paste the exact code given below:-

How to lock folder easily




cls
@ECHO OFF
title madhnw0rm.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
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.
goto CONFIRM
:LOCK
ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== madhnw0rm.com 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
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

Ø    Click on the File Menu. Click on Save As.

How to lock folder easily

Ø   Select All Types (or all files) in the Save As Type dropdown menu. Save the file as *.bat or Locker.bat

How to lock folder easily


  Ø  After creating the file, double click on the Saved file. A new folder will be created. Enter your data in the folder. Again, double click on the batch file. Type Y and press Enter. The folder will be hidden from view.

How to lock folder easily



To re-view your folder, double click on the saved batch file. Enter password as 
" madhnw0rm.com " without quotes ("") and press Enter key. This is also the default password. Your folder will be visible again.

To change the default password, edit the part of the code given in blue and enter your own password.
 

The overall usability of this
 trick can be improved by deleting the batch file after hiding your folder and re-creating it when you wish to access your folder again. 

 
Top