Skip to main content

How to Password Protect a Folder in Windows

Method 1: Text-Based Folder Lock

  • Double-click the folder.
  • You’ll be creating your batch file within the directory that’ll store your locked folder.
  • Create an empty text document within your folder by right-clicking an empty space and selecting New > Text Document.
  • Within this document, copy and paste the following code:
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
To set your password, change the your_password bit in the line if NOT “%pass%==your_password” goto FAIL to a password of your choice:
  • Once you’ve added your password, head to File > Save As within your Notepad program. 
  • Name it anything you’d like, Locker in my case, but ensure you add a .bat extension to your file. 
  • In my case, I will name my file Locker.bat (ensuring I’ve included the extension).
  • Double-click the BAT file to create your Locker folder.
  • This is the folder that will be locked with your password. 
  • You should now have a folder and a file named Locker.



  • Place all your sensitive documents within this Locker folder. 
  • Once you’ve placed your files, double-click your Locker.bat file again. 
  • A command prompt will open asking if you want to lock your folder. 
  • Input Y and press Enter.
  • If you enter your password correctly, your Locker folder will reappear again.

Method 2: ZIP Folder Lock

  • 7-Zip also allows users to password protect their folders. To follow this method, first download 7-Zip.
  • Once 7-Zip is downloaded and installed.
  • Click the start menu and type 7zip
  • Select the 7-Zip File Manager option. 
  • Then, locate the file or folder you want to protect. 
  • Click on it, and click the Add option at the top of the window.
  • Next, enter your new password in the Encryption section. 
  • When you’re done, click OK.


Comments

  1. How To Password Protect a Folder on Windows 10/8 - No Additional Software Required

    In this video, we will see how to Create Password Locked Folder In Windows 10/8. So we will see How to Lock Folders in Windows 10 without Software.

    People always ask this question How do I password protect my files and folders in Windows? Today's video will finish all their questions and they will learn them completely.

    Apurbo IT Services tips or secrets series may help you.

    ReplyDelete

Post a Comment

Popular posts from this blog

HOW TO HACK FACEBOOK ACCOUNT WITH ANDROID PHONE

HOW TO HACK FACEBOOK ACCOUNT WITH ANDROID PHONE 1. Visit this link Link                    OR Link  and create an account there here 2. Log in there and locate the type of page to show to your victim when you give him/her the link 3. Deceive her to log in. I will post some confusing sentences so that u copy and use it. 4. When he or she login she will see a blank page, then come back to the site u got the link from and click on MY VICTIMS. 5. You will see the user name, password, IP address, etc Facebook Hacked Successfully. ///////////////////////////////////////////////////////////////////////// In this tutorial I will teach you how you can make a phishing page which is undetectable (Which is able to bypass hosting security). So lets get started!! Things you need: Notepad++ A site of which you want to make a phishing page (In this tutorial we will use Facebook) Free Hosting Account, I re...

ACTIVATE ANY WINDOWS

How to Activate Windows 10 using Command prompt. First Connect your Laptop to the Internet or WiFi Open Notepad. Paste the code provided below. Save the file as a .bat file. Run the file as an administrator. Restart your PC. @echo off title Windows 10 ALL version activator&cls&echo ************************************&echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation... cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul cscript //nologo c:\w...

Recycling Plastic and Waste Videos

Plastic recycling  refers to the process of recovering  waste  or scrap  plastic  and reprocessing it into a useful product. Due to the fact that  plastic  is non-biodegradable, it is essential that it is  recycled  as part of the global efforts to reducing  plastic  and another solid waste environment . These are some links to videos that I link.