Different Ways To Password Protect Your Folders Or Files In Windows 10

0
42
password protect files or folders

Do you want to password-protect your folders or files? After getting a new Windows 10 PC, or any model of Windows then there are few things that you must do before using your computer. Of course, you need to install or download Chrome is one of the things lots of us do. But there are other most important things that you have to pay proper attention to, especially when your computer has confidential information like personal videos, photos, bank information, or anything else that you don’t want anyone to share it to get access to.

If you don’t follow the right steps, your confidential information might get into the hands of the people that harm you. Also, you have the choice not to share your computer with others, and that way you can secure your information, but the best thing is you don’t have to be that rude to secure or protect your folders or files in Windows 10. There are different methods that help you to protect your password and your sensitive information.

How To Password Protect Your Folders Or Files In Windows 10:

password protect

Procedure 1:

You can do this simply by creating a simple batch file(a.k.a. BAT file). Also, you don’t have to be an expert to do that. But before we move further, you need to understand the batch file if you’re not familiar with it. So, a batch file is a simple text file that can automate or control daily tasks, shorten the required time to do something.

Now proceed further to the steps that you want to follow to be able to hide your files or folders.

Step 1:

Initially, create a file then name the file whatever you want to.

Step 2:

Double-tap the folder to open it. Then within the folder, do a right-tap on the empty space and choose New > Text Document

Step 3:

Then assign a name to the document whatever you like and then open it in Notepad

Step 4:

Then paste the code mentioned-below

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the 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 Locker "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 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}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
Step 5:

Now you can locate if NOT “%pass%==your_password” goto FAIL in the code that you just pasted. And then modify your_password to the password of your choice.

Step 6:

Then head over to notepad and on its top right corner, you can then view the File option, tap on it and then tap on Save As.

Step 7:

Now a prompt appears and asking you to name the file. Select a name a make sure that you add a .bat extension to your file. Also, remember that the encoding type is ANSI. Tap on Save.

Step 8:

Double-tap on the BAT file that you just created. Now you should be able to view a folder with the name similar to the BAT file.

Step 9:

Now place all your files and folders that you think are confidential in the folder that you just created by double-tapping on the BAT file.

Step 10:

Now tap on the BAT file again

Step 11:

A command prompt appears and asking you to lock your folder. Hit Y and hit Enter.

Step 12:

Now you’ll no longer view the folder. However, if you want your folder to appear again, you’ll then want to double tap on the BAT file and then open the command prompt asking you to input the password you select. After you enter the password perfectly, you should then view the file once again.

Note: The steps are applicable in the older model of Windows. So, if you’re still running Windows 7 or older, the above steps will work for you.

Procedure 2:

If you find the above method difficult then follow the steps mentioned below!

Step 1:

Do a right-tap on the folder you like to hide, and then tap on Properties

Step 2:

From the General tab, you will then view an option known as Attributes, at the bottom which you have two choices to select, the default is Read-only. But if you like to hide the folder, you’ll want to choose Hidden, then choose Apply and tap OK. You should not view the folder now. But if you’re still seeing, you want to do a little more.

Step 3:

From the top of the file explorer, you can then view a tab known as View. Tap on it. And then tap on Options and then tap on Change folder and search options.

Step 4:

A new pop-up window appears. Now here you just look for the view tab and then tap on it. We’ll then view a setting known as Hidden files and folders, at the bottom of which you’ll view two options — just choose the first option that says Don’t show hidden files, folders or drives. Tap on Apply and then OK.

All done!

Conclusion:

Here’s all about “Password Protect Your Folders”. Now you should have a complete understanding of how to password protect your files or folders. For further queries and questions let us know in the comment section below!

Also Read:

Leave a Reply