author avatar
    Senior Program Developer


Free and practical folder lock methods which has been tested are provided here. Helps you password protect folders from unauthorized access.

Check the one or more you want!

Hey, buddy, people has met such situations! You are not the only one! All of us want to protect private files and data in folder and external memory devices.

Also, being a software engineer, people around me always ask:

  • “Hey bro, do you know any software which can help me lock Windows folder with password? My colleagues always peep at my computer when I leave my seat.”
  • “My sisters and brothers always access my private files without my permission. I want a software which can password protect my private folder. “
  • “My son always play computer for hours. Can you help you to lock the software or folder with password?”
There are many different methods which can help you lock folder or solve these problem for free! Some make it by using script, some go through with third party software and some recommend build-in function in Windows. But do they work or match your expectation? Here, I have collected and tried these methods. And I am going to analyze them one by one! Let us go!

Method 1: [Free] Lock folder with Script (Modify the Property of Folder)

This methods lock folders with system script. It will modify the property of folder and rename the target folder, which will hide the folder at last. Once you enter the password in script file, the folder will be shown. This is one of the free method which can lock a specific folder.
Convenience: ★★★☆☆

Processing time: ★★★★★

Safety: ★☆☆☆☆

Difficulty to crack: ★☆☆☆☆

Suitable to defend: Those who do not know much about computer, such as children, housewife and the aged.

Supported system: Windows 10/8/7/XP/Vista/2K

Support to lock piles of folders at a time: NO

How to Lock Folder
>> Create Script file.

Please save the following content as “lock.bat” (Use Notepad). Or you can download the script that we have make (Click here to download).


title Folder Private
if EXIST “Control Panel.{11EC1999-8888-3333-EEEEE-01003A305237}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER

echo Are You Sure You Want To Lock The Folder (name:Private) (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.{11EC1999-8888-3333-EEEEE-01003A305237}”
attrib +h +s “Control Panel.{11EC1999-8888-3333-EEEEE-01003A305237}”
echo Folder Locked.
goto END

echo Enter Password To Unlock Folder
set/p “pass=>”
if NOT %pass%==PASS goto FAIL

attrib -h -s “Control Panel.{11EC1999-8888-3333-EEEEE-01003A305237}”
ren “Control Panel.{11EC1999-8888-3333-EEEEE-01003A305237}” Private
echo Folder Unlocked Successfully
goto END

md Private
echo Private Created Successfully
goto END


>> Change Password and Folder Name

With the text pasted in, you can adjust the locked folder’s name as well as the password used to unlock it. The default folder name is “Private” and the default password is “Pass”. You can find and adjust them in the “lock.bat” file.

Change folder password in script.
change password in script
Change folder name in script.
change folder name in script
>> Save files in Target Folder

After saving the “lock.bat”, please double-click it and then a new folder named “Private” will be created in the same catalog. Please put the files or folders into “Private”.

double click saved lock bat file
create target lock folder
>> How to Lock the “Private” Folder
Step 1: Double-click “lock.bat” and enter “y” in the pop up Window.
lock the target folder with script
Step 2: Hit “Enter” and you will find that the folder ”Private” has disappeared.
>> How to Show the Hidden and Locked Folder?
Step 1: Double-click “lock.bat” again.
Step 2: Enter the password you set in the pop up window and hit “Enter”.
show the lock folder
Step 3: Wow, the disappeared folder is shown again. 
Easy to go. The only thing you need to do is to save the script and make the operation. It does not need any complicated operation or professional knowledge. Besides, whole process will not take too much time. It is enough to prevent unauthorized access from those who do not know much about computer, especially for housewife and children.
Easy to crack. Does not support to lock a batch of folder at a time.
back to top botton
How to Crack Folder
It is very easy to get this folder even you do not get the “lock.bat” file. All you need to do is to show all hidden files, folders and drive in browser.
Step 1: Hit “Win” and “E” button, please click “Organize” -> “Folder and search option”. (Here is the process in Windows 7). If you are using Windows 10, the “Folder and search option” could be found in “File” item.
select folder and search options
Step 2: Please check the 3 items which has been highlighted in the picture. And click ok.
select items which can show the locked folder with script
Step 3: Then the hidden folder will be shown but with another name.
locked folder is shown
It is just so easy to crack the folder protected with script. Too easy to be cracked? Want to get a more secure and convenience solution? Click here!
back to top botton

Method 2: [Free] Lock Folder with Software like Winrar, Winzip, 7zip

This method is to compress the entire folder with the password protect function in some compression tools. This method is time-consuming. Especially you have include some large files. Of course, this method is safer than using script. And it is harder to crack. Besides, if you want to add new files, you need to go through the whole decompress process.
Convenience: ★★☆☆☆
Processing time: ★★☆☆☆
Safety: ★★★☆☆
Difficulty to crack: ★★★☆☆
Suitable to defend: Anybody
Supported system: Windows 10/8/7/XP/Vista/2K
Support to lock piles of folders at a time: Yes
How to Lock Folder
Preparation: Please download one of these compression tools.

Here we will make Winrar as an example.

Step 1: Download and install Winrar.

Step 2: Right-click the folder you want to lock and click “Add to archive…”.

Step 3:  Please click “Set password” in the pop up window.
set password for compressed folder
Step 4: Set the password and confirm again for the compressed folder. Please click OK.
enter password for the compressed folder
Step 5: Compression will go through automatically. The larger size the folder you try to lock, more time will need to compress.
compress go through
Step 6:  After compression, you will get a compressed file which is password protected. Of course, you need to delete the source folder. Or other can still check your folder.
Easy to get and use the software. Now compression tools are very common. All you need to do is to set a password which can not be cracked easily and rename the compressed file. Then you can save it anywhere you want. Besides, the security of this method is good that anyone who wants to crack this file need to spend hours.
It is not so convenience if you want to access the files inside. You need to decompress the files at first. What if the files you want to access is a 3GB+ video? The decompress time may take hours.
Besides, there are many cracking tools which can help users crack Winrar, Winzip password protected folders.
back to top botton
How to Crack Folder
Besides cracking the compressed folders on your computer, people who are interesting in your folders can copy these folders to their computer and get more time to crack the files with any cracking tools they found on Internet.
Such software usually use dictionary cracking. Some can even add personal information like birthday, phone number, etc to increase the success rate of cracking.
software which can crack compressed folder
compressed file cracking
Want to lock the folder with a more convenience method which does not need to decompress or can not be copied to cracking? Click here to find solution!
back to top botton

Method 3: [Free] Lock folder with Account Authority in Windows

This method only worked for computer which has different accounts with different privilege. If there is only one account in your PC, then this method will not work. The principle of this method is to make use of the built-in account settings in Windows. Once you encrypt the folder with the “Compress or Encrypt attributes” function, all the data you add to this folder will be encrypted automatically.
It is easy to use. But please note that the folder name is not encrypted. Of course, this method is free as well.
Convenience: ★★☆☆☆
Processing time: ★★★★☆
Safety: ★★☆☆☆
Difficulty to crack: ★★☆☆☆
Suitable to defend: Those who do not use the same account with you on the same PC.
Supported system: Windows 10/8/7/XP/Vista/2K
Support to lock piles of folders at a time: Yes
How to Lock Folder
Step 1: Right-click the folder you want to encrypt. And click “Properties”.
select properties to lock folder
Step 2: Choose “Advanced” on the pop up window. Then please check the item “Encrypt contents to secure data” and click “OK”.
click advanced in properties of target folder
Step 3: Then Windows will encrypt data inside this folder. 
choose encrypt to secure data to lock target folder
Step 4: If you want to access the data inside this folder.

If you want to access the locked folder, please login the related account which you used to lock the folder. Others login with different account can not access the data inside. (But they can get the folder name. )

Easy and convenience. No need to install any third-party software.
Others account can still get to know the name of this folder. It is not so good to protect private files. Besides, you need to make set up for different account. Sometimes it is not so convenience.
back to top botton
How to Crack Folder
You need a offline Windows password cracking tools like “Ophcrack” ( Then you need to create a bootable USB disk or CD. And boot the target PC with this disk. Then Ophcrack will help you get the password of this account.
Ophcrack crack account password
Here, it just take 2 minutes and we can get the password to login the target account. It is so easy to access your personal files. It is not safe to take this solution? Now you can take the following tips into consideration.
Want to password protect folder with a method which is more convenience, better security and do not need to go through too many setting process? Click here to get a perfect solution!
back to top botton

Method 4: [Free] Protect Folder With Sharing Settings

This method works for those who need to share files via network. Similar to method 3, this method also make use of the built-in function of Windows – others need the account and password from you when accessing your shared folder. Under this circumstance, other will not know the folder name. Although the security of this method is good, it does not improve the difficulty of cracking. Related cracking method will be provide later.
Convenience: ★★★☆☆

Processing time: ★★★★☆

Safety: ★★★☆☆

Difficulty to crack: ★★☆☆☆

Suitable to defend: Those who do not use the same PC with you, like your colleagues and students.

Supported system: Windows 10/8/7/XP/Vista/2K

Support to lock piles of folders at a time: Yes

How to Lock Folder
Step 1: Create a new account for sharing. 
I think no one would tell others the login password of own account. And here is about how to create the new sharing account.
1: Click “Start” button then go “Settings”.
click start to find settings
2: Select “Account” item. 
click Account

3: Click “Family and other account” then please find and click “Add someone else to this PC”.

add other accounts

4: Set the name and password for this account.

new account setting

5: Click “Next” and the create will get finish.

account added successfully
Step 2: Share the target folder. Right-click the target folder and go to “Share with” item then select “Specific people”.
share folder with sepcific account
Step 3: Select the account you just created in the list.
share settings
Step 4: Click “Next” and the create will get finish. After sharing, other account can access the shared folder with the path here but need to enter the correct password.
share successfully
Effective on controlling who can access the folder. Also support to lock the control of different one. Others will not know the folder name and content until they enter the correct account and password.
Only work on network computer. It will not work if you just want to lock the folder in your own PC.
back to top botton
How to Crack Folder
Cracking shared folder is a little complicated. But we still can go through.
Step 1: Download SMB Scanner ( . Then launch the software and enter a IP. (Like:
Step 2: After searching finish, please use the crack function in this software to crack the password of the shared folder. 
Want to get a more secure, convenience and hard to crack solution to lock folder? Click here to get one!
back to top botton

Method 5: [Free Trial] Lock Folder with Renee File Protector

Methods above are some free solution to lock folder in Windows. However, those methods are inconvenience, not secure or easy to crack. If you care about this and want to find a better solution, then you can have a try of Renee File Protector which was designed by Rene.E Laboratory with over 2 years. Renee File Protector includes multiple helpful functions to provide overall protection to your data and private information.

Overall protection provided by Renee File Protector:

Protection for External Memory Devices:
Password protect files/folders in external memory devices like SD card, external hard disk, memory card, USB disk, etc. p >

Protection for Shared Folder:
Lock shared folder with password to ensure the right people get access to the files in shared folder.

Hide Data:
Support to hide a batch of files/folders/partitions in local disk. Even you enable the “Show hidden files/folders” in Windows, the protected data will not be shown.

Protect from Modification:
You can enable others to check the protected data but can not modify or delete the protected data.

Lock Data in Local Disk:
Lock files/folders/partitions in local disk with password. Just a few simple steps you can prevent the protected data from unauthorized access.

Any activity of the targets which has been added to the monitor list will be recorded. You can check the log at anytime.

Safe Delete Function:
Erase data you select without trace. Unrecoverable! Truly protect your privacy!

Compatible with: Windows 10/8.1/8/7/Vista/XP
Get Free Version
people has downloaded and lock their folders!
Here, I think most of you are interested in how to lock folder with password. Let us get more about how Renee File Protector works here.

Locking Theory of Renee File Protector

Lock function of Renee File Protector:
It lock folder with password and control the access to target folder with file system driver. Whole locking process will not modify data inside the folder. Besides, it will not limit the number of the files/folders you want to lock.

Time consuming for folder locking with password:
Folders in Local Disk: nearly instant.
Folders in External Disk: May take a few minutes because we need to lock the target files/folders in a special way.

Convenience: ★★★★☆

Processing time: ★★★★★

Safety: ★★★★☆

Difficulty to crack: ★★★★★

Suitable to defend: Your friends, colleagues, children, partners, etc.

Supported system: Windows 10/8/7/XP/Vista/2K

Support to lock piles of folders at a time: Yes

How to Lock Folder with Renee File Protector

Folder locked with this method will not be password-protected after the uninstall of Renee File Protector. Of course, only you enter the correct password, the uninstall of Renee File Protector will be processed.
The first time you use Renee File Protector after installation, you will be required to set the master password and the email address.
set master password

Step 1: Launch Renee File Protector and go to “Lock File” in “Hard disk”.

lock function

Step 2: Click “Lock Folder” and then select the target folder in the pop up browser.

lock folder function in hard disk

Step 3: Renee File Protector will lock the selected folder once you confirm.

You can also lock target folder via right-clicking it. Please click “Renee File Protector” and then “Lock(Deny read/write/run)” in the menu. Then the folder will be locked once you enter correct master password of Renee File Protector.
select the folder and lock

Step 4: You will be notified that the target folder is not accessible when you double click it. Enter the master password in the pop-up window. Then you are able to get access to the data inside.

enter master password
Locking folder with Renee File Protector is so easy and secured. Without authority or correct password, nobody could get into the protected folder. You can lock multiple folders in different partitions with Renee File Protector. Besides, it is hard to break the locking folder here. Get it now!
back to top botton

Possibility of Cracking

Brute force is inevitable challenge for every encryption software. Renee File Protector always gets ready for different challenges. Thanks to the limitation from file system drive, others can not copy the protected folder to other place.
Besides, users can make security settings in “Security” to master the cracking activity. You can get email notification and lock the account for 10 minutes once users enter wrong password more than 5 times.
self-protection of Renee File Protector
back to top botton
What are you hesitating for? Download Renee File Protector and lock folder now! Also, you can make comparison of different lock methods here!
Loading comments...