How to Lock a Folder Without any Software

Lock a Folder Without any Software

Lock a Folder Without any Software

So today we will guide you on how to lock a folder without any software. You can lock a folder without software by using a password easily. This guide doesn’t require any kind of software to download for folder locking. This works for these versions of Windows 7, 8, 10. We all have computer files we’d like to keep secret from the world, but not everyone knows how to password protect a folder in Windows 10.

Whether you want to hide some personal documents or notes or some personal pictures something less drastic, you’re allowed to have some privacy. Something less drastic, you’re allowed to have some privacy. You can do it easily in windows without having any kind of issues. As well as you can do it without buying software easily.

Can I password protect a folder in windows 10?

Yes, it’s possible to password protect a folder in windows. As we all know data protection must be our first priority. If you are a housewife, you might want to protect your couples’ private video, pictures, documents, credit card, and bank account information, financial situation, or other files and not let your kids or other family members know. If you are a businessman you must have very important credential documents, human resources files as well as company records files, and other private files that cannot be stolen by your competitors.

Therefore, how to protect your data in a reliable way becomes critical. There are a few good solutions such as hide folder, shred files, lock folder, encrypt folder by software or hardware, and more. As an experienced computer user, the editor has tried all of the solutions and is well impressed by each. I will show you the easiest way, just with Windows’s built-in feature, that is put a password on a folder you want to protect and encrypt all your important files.


Make sure you are well aware of this process otherwise if you can’t do it properly you might lose your important documents. If this method doesn’t work just make sure you do it on a “sample folder”. As well as make sure you keep the record of the files or documents in another folder as well to avoid loss. Since every computer has its own specification so we cannot deduce what went wrong from your end.

Even the password of the folder can be reversed by someone who is aware of these types of codes. But it’s secure for daily and family users.


  • Avoid using a password with a space as they may create an issue in the batch file.
  • The files placed in the folder can appear in the “Recent Files” option as well as in Microsoft Word.

This is how to password protect a folder in Windows 10 or in any other Windows version.

How To Lock a Folder With a Password in Windows 10:

  1. First, create a New Folder in your particular drive.

folder lock for pc

2. Now create a new “Notepad” or “Text Document” inside the folder with the code mentioned below.

folder lock without software

if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDPrivate
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 Private “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%== YOUR PASSWORD goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End

        3. Now remove “Your Password” text from the code and replace it with the password you want and save the Notepad File with any name + add .bat in the end. “example: password.bat”


4. A bat file will be created in the folder named “password”.

lock for windows 10

5. Now “Double Tap” on the “password” file a private folder will appear.

password protect folder windows 10


6. Move files documents that you are willing to secure in that private folder.

folders locker


7. Go back again click on that password.bat file a command prompt will be open.

lock for windows

8. You need to insert “Y” to ensure that you need to password protect the folder. Press Enter

how to password protect a folder in windows

9. The folder is now password locked and it disappeared. Now to bring it back double tap again on the password.bat file and enter the password which you added in the code.

add password to folder

10. The disappeared file is now visible again.

password protect folder windows 10

11. Now to secure the folder again repeat the same procedure by double-tapping on “password.bat” and insert ‘Y’ once again.

how to password protect a folder in windows 7:

First, open Windows Explorer and browse for a folder that you want to secure.

protect a folder in windows 7

Now Right-click on a file or folder that you want to encrypt, and then click “Properties” from the Windows context menu.

folder protect

After this click the “Advanced” button on the “General” tab when a Properties window pops up.

secure a folder in windows 7


Now Select the “Encrypt contents to secure data” option on the “Advanced Attributes” window as shown below and click “OK”.

After this click the “Apply” button on the Properties window. A new window is poping up reminding you to select what folders and files you want to encrypt. You can choose either option according to your actual needs.

lock a folder in windows 7 without any software

This is how your folder is encrypted by your windows login administrator password. The users cant access your password-protected folder without your permission.


This is how you can password protect your folder in windows. This is one the easiest method and you don’t need any kind of software to protect your important documents. I hope you would like this article and if you have any queries regarding it drop me a comment below I’ll surely help you out in any way.

A video guide has also been posted below for your assistance. I hope you would like that too. Thats all for now thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *