Everybody has a dark secret that she/he want to hide from the rest of the world. Some of these secret could be in your computer. By keeping a lock screen password you secure it at one level. But times may come when you should hand over your system to someone else for certain time period.
During those times not each and every files in our computer should be visible to everybody, thus password protecting a folder by using password and hiding it should help. Fortunately, you can create a password protected separate folder in Windows 10 that contains your essential files. Here’s how to password protect the folder in Windows 10.

Steps To Password Protect A Folder in Windows 10.

There are two methods to password protect a folder in windows 10.
 
Method 1: Creating Batch Scripts
Method 2: ZIP locking Folder

Password protecting a folder with a Batch File.

Notes: Before following the given steps we request you to backup your data. Also, don’t use a password with a space, it might create issue with batch file.
  • Create a Folder.
    gadgets and widgets. password protect a folder 01
  • Open the Folder and right click inside the folder and select “New>Text Document” from the contextual menu.
gadgets and widgets. password protect a folder 02
  • Open the text document that you have created and paste the following code in the blank document.
 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%==Enter-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
  • In the code section find if NOT %pass%==Enter-Your-Password goto FAIL line. Replace “Enter-Your-Password” with your own password

    gadgets and widgets. password protect a folder 03

  • Click on file and select the “Save As“option.
    gadgets and widgets. password protect a folder 04
  • Change the file type to All Filesand change the name of the file to anything you prefer with .bat extension at the end of the name and save it.
    gadgets and widgets. password protect a folder 05
  • Newly created Batch file will be seen.
    gadgets and widgets. password protect a folder 06
  • Open the Batch File by double clicking on it. New folder with the name Locker will be created.
    gadgets and widgets. password protect a folder 07
  • Store all he files in the Locker folder to protect it.
  • Now, launch the Batch file and type Y, the folder will disappear.
    gadgets and widgets. password protect a folder 08
  • To unlock the folder, launch the batch file again and enter the password that you have previously assigned.
    gadgets and widgets. password protect a folder 09
  • The locker folder will appear again.

 Password Protecting  a Folder by ZIP locking Folder

  • Download and install 7-ZIP on your PC.
  • Open 7-ZIP.
  • Locate and select the folder that you want to lock and click on + icon.
    gadgets and widgets. zip-locking-01
  • Enter the password for encryption and click on “OK”.
    gadgets and widgets. zip-locking-02
  • New encrypted and compressed file will be created. Then, the original folder needs to be deleted.
    gadgets and widgets. zip-locking-03
  • To access the encrypted folder, extract the ZIP file and it will ask for the password before extracting.
    gadgets and widgets. zip-locking-04
               
           
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments