How To Password Protect a Folder in Windows by cmd without any software

How To Password Protect a Folder in Windows by cmd without any software

We all have computer files that we want to keep secret from the world, but not everyone knows how to protect a Windows 10 folder by a password. Whether you hide notes from someone with access to your laptop or something less dramatic (hopefully), you’re permitted some privacy. Fortunately, you can put those unmentionable plans or files in a secret folder that is password-protected in Windows 10, and you can do that without buying any additional software. Once a new folder has been created in Windows 10, here’s how to protect it from the password.

How To Password Protect a Folder in Windows 10 mrevery

Before you begin, a note:

We have got remarks on problems that people have come up against this way of doing things. So, we came back and conducted numerous test rounds internally, and can now confirm that following this process carefully, step-by-step, works — at least at our end.
But just to be safe, first try using files you can afford to lose, just in case the method doesn’t work for you. Also, make sure that you keep some record of the precise password that you use to lock your folder somewhere. If you lose your password, your files are gone, and as each computer is different, we can not deduce precisely what went wrong at your end.

Also, yes, somebody who understands the process can reverse engineer the FolderLocker file, but this is not meant to keep out tech-savvy people, just nosy family members that you don’t trust.
And as one reader pointed out, in various apps, such as Microsoft Word, files placed in the locked folder may appear in any Recent Files list.

Here’s how a Windows 10 folder can be protected by password, so you can fill it with documents that you want to maintain confidentially — and how to lock, open, and repeat.

How to lock a folder in Windows 10 with a password

  1. Right-click the folder where you will find the files you want to protect. You can even hide the folder on your desktop.

    How To Password Protect a Folder in Windows 10 mrevery
  2. From the context menu, choose “New.”

    How To Password Protect a Folder in Windows 10 mrevery
  3. Click on “Text Document.”

    How To Password Protect a Folder in Windows 10 mrevery
  4. Hit the Enter. What the file is going to be named doesn’t matter. You can delete this text file once the folder is lockable.

    How To Password Protect a Folder in Windows 10 mrevery
  5. Double-click the text file to open it.

    How To Password Protect a Folder in Windows 10 mrevery
  6. In the fresh document, paste the text below:

    How To Password Protect a Folder in Windows 10 mrevery

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-Here 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

7. Find in the document where it says “Your-Password-Here.” How To Password Protect a Folder in Windows 10 mrevery
8. Replace “Your Password-Here” with the password with which you wish to lock the folder. How To Password Protect a Folder in Windows 10 mrevery
9. Click File. How To Password Protect a Folder in Windows 10 mrevery
10. “Select Save As…” How To Password Protect a Folder in Windows 10 mrevery

11. Click on the menu bar “Text Documents (* .txt)” next to “Save as Type:” How To Password Protect a Folder in Windows 10 mrevery
12. Select “All Files”.

How To Password Protect a Folder in Windows 10 mrevery
13. Change the name of the file to “FolderLocker.bat” How To Password Protect a Folder in Windows 10 mrevery
14. Click “Save.” How To Password Protect a Folder in Windows 10 mrevery
15. Double-click FolderLocker. How To Password Protect a Folder in Windows 10 mrevery
The folder Locker was created! How To Password Protect a Folder in Windows 10 mrevery
16. Fill in the folder Locker with the items that you want to protect. How To Password Protect a Folder in Windows 10 mrevery
17. Open the FolderLocker file, it’s time to lock the folder up! How To Password Protect a Folder in Windows 10 mrevery
18. In the screen type “Y.” How To Password Protect a Folder in Windows 10 mrevery
19. Click Enter, the Folder Locker window and the Locker folder itself will disappear! You’re safe in your secrets!How To Password Protect a Folder in Windows 10 mrevery
Double-click “FolderLocker” to open the folder to unlock it. How To Password Protect a Folder in Windows 10 mrevery
Enter your Step 8 password and press Enter. How To Password Protect a Folder in Windows 10 mreveryHow To Password Protect a Folder in Windows 10 mrevery
The folder for Locker is back. For finding your hidden files, you can open it.How To Password Protect a Folder in Windows 10 mrevery Repeat steps 17, 18 and 19 to relock the folder. How To Password Protect a Folder in Windows 10 mrevery

READ ALSO:

x

 

MrEvery Team

Leave a Reply

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