What's new

Help How to set a password protected folder in windows?

Solution
You can set a password protected folder in Windows using a few different methods. Here are three options:

1. Use Built-in Encryption Features: Windows has a built-in encryption feature called "EFS" (Encrypting File System) that allows you to encrypt files and folders. To encrypt a folder, simply right-click on the folder, select "Properties," and then click on the "Advanced" button. From there, check the box that says "Encrypt contents to secure data" and click OK. You will be prompted to back up your encryption key, and then your folder will be encrypted and protected with your login password.

2. Use a Third-Party Program: There are many third-party programs available that can help you create password-protected folders. Some...
You can set a password protected folder in Windows using a few different methods. Here are three options:

1. Use Built-in Encryption Features: Windows has a built-in encryption feature called "EFS" (Encrypting File System) that allows you to encrypt files and folders. To encrypt a folder, simply right-click on the folder, select "Properties," and then click on the "Advanced" button. From there, check the box that says "Encrypt contents to secure data" and click OK. You will be prompted to back up your encryption key, and then your folder will be encrypted and protected with your login password.

2. Use a Third-Party Program: There are many third-party programs available that can help you create password-protected folders. Some popular options include VeraCrypt and Folder Guard. These programs allow you to create encrypted volumes or folders that are protected by a password of your choosing.

3. Use a Batch File: You can also create a batch file that will hide your folder and require a password to access it. To create a password-protected folder using a batch file, you'll need to create a new text document (with a .bat extension) and add the following code:

Code:
@ECHO OFF
title Folder Private
if EXIST "Private" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Input.
goto CONFIRM
:LOCK
ren Private "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked.
goto End
:UNLOCK
echo Enter password to unlock folder.
set/p "pass=>"
if NOT %pass%== YOURPASSWORD HERE goto FAIL
attrib -h -s "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully.
goto End
:FAIL
echo Invalid password.
goto end
:MDLOCKER
md Private
echo Private Folder created successfully.
goto End
:End

Make sure to replace "YOURPASSWORD HERE" with the password you want to use. When you run the batch file, it will ask if you want to lock the folder. If you say yes, it will hide the folder and require a password to access it. If you enter the correct password, the folder will be unhidden and accessible.
 
You can set a password protected folder in Windows using a few different methods. Here are three options:

1. Use Built-in Encryption Features: Windows has a built-in encryption feature called "EFS" (Encrypting File System) that allows you to encrypt files and folders. To encrypt a folder, simply right-click on the folder, select "Properties," and then click on the "Advanced" button. From there, check the box that says "Encrypt contents to secure data" and click OK. You will be prompted to back up your encryption key, and then your folder will be encrypted and protected with your login password.

2. Use a Third-Party Program: There are many third-party programs available that can help you create password-protected folders. Some popular options include VeraCrypt and Folder Guard. These programs allow you to create encrypted volumes or folders that are protected by a password of your choosing.

3. Use a Batch File: You can also create a batch file that will hide your folder and require a password to access it. To create a password-protected folder using a batch file, you'll need to create a new text document (with a .bat extension) and add the following code:

Code:
@ECHO OFF
title Folder Private
if EXIST "Private" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Input.
goto CONFIRM
:LOCK
ren Private "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked.
goto End
:UNLOCK
echo Enter password to unlock folder.
set/p "pass=>"
if NOT %pass%== YOURPASSWORD HERE goto FAIL
attrib -h -s "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Private.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully.
goto End
:FAIL
echo Invalid password.
goto end
:MDLOCKER
md Private
echo Private Folder created successfully.
goto End
:End

Make sure to replace "YOURPASSWORD HERE" with the password you want to use. When you run the batch file, it will ask if you want to lock the folder. If you say yes, it will hide the folder and require a password to access it. If you enter the correct password, the folder will be unhidden and accessible.
Thanks bot. 🤩
 
Solution

Similar threads

Back
Top