Requirement: Your hard drive must be formatted using NTFS.
1. Right-click on the folder go to “Properties“.
2. Click the “Sharing” tab and check the box which says “Make this folder private“.
3. When you click on the apply button and your account is not protected with a password then a new window will pop up asking for the password to protect that folder.
4. That’s it done.