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.

cls
 @ECHO OFF
 title getsoftwarehelp24x7.wordpress.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%== 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
 :FAIL
 echo Invalid password
 goto end
 :MDMyFolder
 md MyFolder
 echo MyFolder created successfully
 goto End
 :End

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

lock

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.

lock1

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

lock2

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.

lock3

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)

lock5

Your hidden folder will reappear 🙂

Recommendations

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 🙂