How to create password protected folder in windows 7 without any software

How to create password protected folder in windows 7 without any software: Protecting a folder with password allows securing your useful and confidential data in Windows. What I noticed that people use third-party applications to lock a folder with password. Many times guests or Friends get their hands on your Personal Computer and start exploring your Computer. They could even have access to your Personal data which you do not want to share with anyone. There are a lot of software, available in the market to lock or hide your folder in Windows. However, if the same thing can be achieved without any software then why you’d use a third-party software which might itself comprise vulnerabilities?However, At this time in this text, we’re going to Study Easy methods to Password Defend any folder in windows without any Software. You’ll have full Control over your Folder, and We’ll create a batch file which can create a Folder where you can save all your private data and Hide it that nobody can find it. If you want to unhide it, so you will have to enter your password which guarantees High Security.

Step to Create Password Protected Folder in Windows

Step 1. first of all,  Open Notepad

Step 2. Just copy and paste it to notepad



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%== compsmag 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

Notice: The Default password is compsmag so if you want to change the password, only change compsmag in the above code with your personal chosen password that you can remember.

Step 3.  Remember that the Location where you save the file, now Double click on your Created file which can create a Folder there with the name “My Folder.”

Step 4.  Now Copy paste all your valuable data and paste it in that Folder. Next, Simply you need to Double click on the lock.bat file which we created. A CMD window will pop up just like below image.

create password protected folder

Step 5. Press “Y” and enter to lock the folder. You will see the My folder is now hidden, and can’t be seen.

To Unhide the folder, just double click on Lock.bat file, it will ask you the password so if you have not changed the above code then write “compsmag” and hit enter to unhide the folder.

create password protected folder

If you Replaced compsmag with your own password, then you will be needed to get into this password in the CMD to unlock the folder.
That it, we just created a password protected folder in Windows by your own which will be useful to you every time you want to hide your personal data from others.

 Step 6. That’s it! Now you’re done.

Also Read:

  1. How to Use WordPress for Android
  2. How to clear memory on computer windows 10
  3. How to track your lost or stolen laptop

We hope you enjoy the article ‘how to create password protected folder in windows 7 without any software.’ Stay tuned for more updates.