How to Protect Folders With Passwords
This wikiHow teaches you how to password-protect a folder on both Windows and Mac computers. Open Start . This icon is in the bottom-left corner of the screen. You can also press to open Start. Click . It's in the lower-left side of the...
Method 1 of 2:
On Windows
- Open Start
- Click
- Go to a location with files you'd like to hide. You'll do this in the column of folders on the left side of the File Explorer window.
- Click the Home tab. It's at in the top-left side of the File Explorer menu bar.
- Click New item. This option is on the right side of the Home tool bar, which is at the top of the File Explorer window.
- Click Text Document, then press ↵ Enter. Doing so creates a new, blank text document in your current folder.
- Double-click your text document. This will open it.
- Click Format, then check Word Wrap. This ensures that the code you use to lock the folder will be properly formatted.
- If there's already a checkmark next to Word Wrap, skip this step.
- Copy the script below:
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 you want to lock this 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
- To do this, highlight the entire script, right-click it, and select Copy.
- Paste the script into your text document. To do this, right-click the text document window, then click Paste.
- Edit your password. To do this, change the "Your-Password-Here" line of text to the password you want to use.
- Save your text document as a batch file. To do so:
- Click File.
- Click Save As.
- Click the "Save as type" box and select All Files.
- Type "FolderLocker.bat" into the "File name" field.
- Click Save.
- Double-click FolderLocker. This will run the code you copied earlier, which creates a folder entitled "Locker" in your current folder.
- Move your files into the "Locker" folder. To do so, highlight the folders by clicking and dragging your mouse across them, then click and drag the files onto the "Locker" folder.
- Double-click FolderLocker again. Doing so opens a Command Prompt window.
- Press Y, then press ↵ Enter. This will lock and hide the folder with your files in it.
- If you want to access your locked folder, you'll have to double-click FolderLocker again and then enter your password into the pop-up window.
Method 2 of 2:
On Mac
- Open Spotlight
- Type disk utility then press ⏎ Return. This will open the Disk Utility app.
- Click File. This menu item is in the top-left side of the Mac's screen.
- Select New Image, then click Image from Folder. This will open a finder window.
- On some older Macs, this option may be labeled "Disk Image from Folder" instead.
- Select the folder you want to password protect and click Open. Click the box at the top of the pop-up window, click your folder's location (e.g., Desktop), click your folder, and click Open.
- Enter a name for your folder. Do so in the "Save As" field.
- Click the "Encryption"drop-down box and select 128-bit AES encryption. It's in the "Encryption" drop-down menu.
- Click the "Image Format" drop-down box.
- Click read/write. This option will allow you add and remove files to your encrypted folder later.
- Click Save. This button is in the bottom-right corner of the window.
- Create a password and click Choose. Enter a password you want to set for your folder in the "Password" field, and enter it again in the "Verify" field to confirm. Then click the "Choose" button to set the password.
- Your passwords must match in order to continue.
- Click Save. It's a blue button at the bottom of the window. Doing so will create an encrypted copy of the original folder.
- If you named your image the same thing as your original folder, click Replace when prompted to replace the folder.
- Click Done when prompted. Your password-protected folder has been created. Your new password protected folder will appear as a ".dmg" file.
- You can delete the original folder that you used to create the password protected folder if you want, your files are safe in the ".dmg" that was just created.
- Open the password protected folder. Double-click the newly created ".dmg" file to open your password protected folder. This will prompt you for a password.
- Enter the password you set earlier and click OK. Your folder will open as a mounted virtual "drive" on the desktop. Once unlocked, this will open a window and display your files.
- Lock the folder. When you are done, you can lock the folder again by "Ejecting" the drive that was opened by one of the following ways:
- Click and drag the drive's icon to the trash.
- Right-click on the icon and select Eject "[Your Folder Name]"
- Click the eject button next to your folder's name in the Finder window on the left.
4.5 ★ | 2 Vote
You should read it
- How to Password Protect Files on a Mac
- How to Set Password for Folder and File in Windows
- Set a password for the folder, set a password for the folder or folder using Folder Guard
- How to set a password, password for the folder using Lim Block Folder software
- How to set a password and password for the folder using Anvide Seal Folder software
- Open the file, open the folder with a mouse click
- How to use Folder Guard to set a folder password
- How to Remove the Password from a Zip File Without Knowing the Password
- How to Extract a Gz File
- How to set a folder password with Wise Folder Hider
- How to Zip Folder on Windows
- How to Access Shared Folders on a Network
Maybe you are interested
5 popular Auto Click software for computers today
Latest Roblox Clicker Simulator Codes 12/2024
How to use GS Auto Clicker, automatically click mouse on computer
How to use Auto Clicker Assist to automatically click the mouse
Instructions to fix double click error on computer mouse - Click once becomes twice
PowerToys will soon support creating app spaces and launching with just one click