Best Folder Lock Idea for Windows 11 without Any Software

Hi There! Are you looking for how to lock and hide a folder in Windows 11 without installing third party software then you’ve reached the right destination. 

Today, In this post, we’re going to discuss a simple and easy method to hide and lock a folder with a password. 

There are tons of third party software available on the internet that will help you hide and lock a folder in your Windows PC. But, sometimes we need to invest money to buy that kind of software. 

But, after reading this article completely, you’ll be able to hide and lock your folder in Windows 11 without installing any third party software. 

Whenever you want to open the protected folder, a password will be required before the folder becomes visible and accessible

So, without any delay, let’s get started and follow the steps given below to password protect a folder.

Note: You can use this method to hide folders in Windows 7, 8, 10, and 11.

How to Lock and Hide a Folder in Windows 11 Without Using Any Software

Follow the following steps for Folder Lock and Hide in Windows 11. This method is not only for Windows 11, even you can use this private folder lock technique in any operating system.

Step 1: First of all, create a folder that you want to secure with a password. For example, I’ve created a folder named “Folder Lock”. Move all the files inside this folder that you want to be password protected. In my case, I have kept some files and images inside this folder.

folder lock
Create a New Folder that you want hide and secure

Step 2: Now, create a new text file (Notepad) inside the same folder (“Folder Lock”). You can save the text file according to your name choice. I’m naming it “FolderLocked.txt”.

folderlocked
Create a text file inside the same folder and save as FolderLocked.txt

Step 3: Copy the code given below and paste it into the text file that you’ve created in the last step. In my case, I’ve created a text file with the name FolderLocked.txt in the previous step so I’m pasting these code in this file.

@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
: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 Private "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%== 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
:FAIL
echo Invalid password
goto end
:MDPrivate
md Private
echo Private created successfully
goto End
:End

Step 4: Now, On the text file, you have to find the “ if NOT %pass%==YOUR-PASSWORD goto FAIL” and replace YOUR-PASSWORD with the password that you want to protect your folder with. In my case, I’ve used “Demo” as my password.

enter secure password for folder
Replace YOUR-PASSWORD with your password.

Step 5: Click on the file (Notepad) option in the top left corner of the notepad file. Click on the “Save as” button and save the file as “FolderLocked.bat”.

folderlocked.bat
Save Notepad file as FolderLocked.bat

Step 6: Now, double click on the “FolderLocked.bat,” and a new folder named “Private” will be created automatically.

private folder
Double click on FolderLocked.bat file

Step 7: Move all the files you want to hide and protect with password inside the Private folder that we’ve created in the previous step.

Step 8: Again double click on the “FolderLocked.bat” a command prompt window will open in front of you that will ask “Are you sure you want to lock this folder?”. You have to type Y and hit enter key from your keyboard.

double click on folderlocked.bat
Double Click on FolderLocked.bat file

Step 9: Once you press enter, the private folder will be automatically hidden, and only FolderLocket.bat will be visible to you. You’ve successfully hid the folder.

folder hide
Private Folder Has Been Hide

Step 10: To open your password protected folder, double click on the FolderLocked.bat file. A command prompt window will open asking you the password that you’ve created in step 4. Type your password and hit enter. Once you do that, your hidden folder will be displayed to you successfully.

unhide hidden folder
Double click FolderLocked.bat file to Unhide the Hidden File

Step 11: Now, if you want to hide your private folder again, all you need to do is double click on the FolderLocked.bat file again. 

So, that’s how you can easily hide and protect your private files without using any third party software. However, this is the best idea for free folder lock in Windows PC.

I hope you’ve successfully locked and hidden a folder in Windows 11 without Installing third party software. 

Leave a Comment