Password-Protect your Folders in Windows

In my previous post I thought you how to Create a Phishing Page.Today I will teach you how to Password-Protect your Folders in Windows without using any Software.
You can do this on any Windows Platform.

Lets Get Started 🙂

Password-Protect Folder

1. Open Notepad or any other editor.
Copy this Code below in it.

 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
 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 Secure Folder
 set/p "pass=>"
 if NOT %pass%== getsoftwarehelp24x7 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

2. Change the Password to your desired one.As Shown in the pic below.


3. Save it as ‘locker.bat‘ anywhere on your computer.

(I saved it on my desktop. You can save it anywhere.)

4. Double-Click or run the ‘locker.bat‘.
A New folder name ‘My Folder‘ will be created automatically.


5. Copy the Data you want to hide or protect in that folder.


6. Then Double-Click on the ‘locker.bat’.

A command-Prompt window will open. It will ask you whether you want to lock the folder.

Type Y and Press Enter.


The ‘My Folder‘ will hide and no one can see that.

Done your Folder has been Hidden!!

Open The Hidden Folder

7. To Open the Hidden Folder, just Double-Click the ‘locker.bat‘.

A Command Prompt window will open again,Asking for the Password.
Enter your Password and Hit Enter.
(Here I have not changed my password)


Your hidden folder will reappear 🙂


Hide Your ‘locker.bat‘ file somewhere safe. So that no one can edit the password.
You can save the ‘locker.bat‘ in your Pendrive.So later you can copy it in your computer and run it.

Hope this helps you.

Comment your Queries below 🙂