How to password protect files and folder in windows without software

How to password protect files and folder in windows without software

Spread the love

Although this may be true, every computer user would like to protect files and folders. On the other hand, if you are using office systems or any other shared computers, then you need to protect your personal data, documents, images, and videos. There are many dedicated third-party folder lock software’s and file hider applications are available as well as support for the Windows operating system so far. But the real challenge is how to make password protected files or folders in Windows 7/8/Vista or Windows XP and other earlier Microsoft versions without involving third party software’s?. Fortunately, windows systems can create password protected locker by achieving the below steps.

Note: – Before reading these steps, please note that once you lock files and folders using my instructions, then you must be remembering your password first. Suppose if you forgot your password, then you won’t be able to see for your locked files or folders in windows systems.

Steps to password protect files and folder in Microsoft Windows XP, Vista, 7, 8, and 10

Step 1: At first, open your desired location where you want to protect and hide your folders.

Step 2: After that right click inside on your location and select New-> Text Document

create new text document in windows

Step 3: Next open that newly created text document.

open the newly created text document

Step 4: Paste that below code inside of that text document.

copy the file locker code in text document

Password protect and folder lock code for windows:

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 really want to Lock this folder or files(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 please input the valid selection.

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 your secret password to Unlock folder

set/p "pass=>"

if NOT %pass%==janodivi goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Congrats your Folder or files Unlocked successfully

goto End

:FAIL

echo please input the valid selection.

goto end

:MDLOCKER

md Locker

echo Locker folder successfully created now.

goto End

:End

Step 5: The first thing to remember that above code I can set the password for “janodivi” by default. So that change the password here as per your convenience.

Step 6: Go to File-> “Save As” option.

saveas folder lock code

Step 7: Next change the Save as type in “All Files.

change save as file type

Step 8: After that, change the file name for “folder-locker.bat” and click “save”.

rename and save file folder-lock bat

Note: filename is optional. So that if you want to rename then change the file name as per your wish.

Step 9: That’s it everything is set to excellent. It’s time to check whether the created (.bat) file is working or not.

Step 10: Run the “folder-locker.bat” file. If the code is working fine, then Locker folder is created at that same location.

run folder lock bat file

Step 11: Notably Locker folder is the destination folder to protect your all files and folders. So that whatever you need to want to lock your computer then drag or placed this destination.

locker folder

Step 12: After then click on that “folder-locker.bat” again this time prompt is asking “Are you want to lock this folder or files <Y/N>.” if you want to lock files enter the prompt for “Y.” In case of changing your mind press and enter “N.

lock confirmation cmd prompt

Step 13: Finally, your files are protected and hidden here.

Step 14: By the same token if you want to open that password protected folder then click on that “.bat” file again.

Step 15: Next prompt will ask password here. Then Provided your correct password and hit enter.

prompt asking password

provide correct password in cmd prompt

Step 16: Hereafter password protected “Locker” folder showed here and you can able to see for locked files and folders successfully inside that locker folder.

Step 17: Similarly, if you wish to password protected folder again repeat these above steps.

Conclusion:

As a matter of fact, computer security and password protection are essential to everyone. I hope that this article provides a proven solution for how to password protect folders without using any software. In the further share this useful information with your neighbors, friends as well as families 😊.

You may also consider this article 🙂

Leave a Comment

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