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 Reset The Trial Period Of Software To Use It Lifetime? 🖥

1. First, uninstall the software and follow the steps. 2. After uninstalling software, OpenRUN (Windows key + R) and type regedit and hit Enter. 3. Now Registry Editor Window will appear and here navigate to HKEY_LOCAL_MA CHINE \ SOFTWARE \ Your Software name from left a pane of this window. If you find any Key name with your software name then just Delete that Key. 4. Similarly, navigate to HKEY_CURRENT_ USER \ Software \ Your Software name and if you find any key with your software name then just Delete it and close the Registry Editor window. 5. Again go to RUN and type %temp% and hit Enter. 6. Now Delete all the things in that folder. Don’t worry these are the temporary files and not necessary for your operating system. 7. Now go to C:\Users\your username here\AppData. Under AppData open all three folders "Local", "Local Low" and "Roaming” and check. Under these three folders if you find any folder or anything with your Software's name, j...

Permanently delete a file from its hard drive

Do you know that when you  delete a file from the recycle bin,  it is not  permanently deleted?   Yes, it is still present on your  hard drive!   If you try to  delete sensitive data  from your hard drive, a (very) malicious person can recover your files using data recovery software or through the  Windows File History.   What to do then to  permanently erase a file from his hard drive? How are you going to  delete this file? You put the  file in the trash  from Windows Explorer, you open the trash then you  delete the file.   Faster, you can also select the file from the Windows Explorer and press the  Ctrl + Delete keys  to  delete it without going through the trash. Using this method, you have the impression that your file is  permanently deleted.   Still, it still exists physically on the hard drive.               ...

Remove Shortcut Virus From Your Pc And Pd

How To Remove Shortcut Virus From Your Pc and Pd ✅ Method 1. - Clean up and remove Shortcut Virus by CMD - 1. Click on  Start  and select  Run; 2. Type: CMD  and Hit Enter to open  Command Prompt; 3. Type the  drive letter  of your hard drive partition in PC or USB flash drive and hit Enter; (G for example.) 4. Type:  attrib g:. /d /s -h -r -s  and hit Enter. You’ll be able to see your files and data on Windows PC or USB flash drive now. ✅Method 2. -Cleanup Shortcut Virus with Shortcut Virus Remover or Anti-virus Software- If you need a double guarantee, you can download and install anti-virus software to clean up all shortcut viruses from Windows 10/8/7 computer and USB, etc external storage devices. Here below you’ll see a list of anti-virus software and tools and you can selectively choose one to try ➡Trojan Removal Tool; ➡Shortcut virus fix folder; ➡Malwarebytes Anti-Malware, etc. ✅Method 3. - Delete/Wip...