How To Lock a Folder With a Password in Windows 10

Configurare noua (How To)

Situatie

How to lock a folder

Solutie

Pasi de urmat

1. Right-click inside the folder where the files you want to protect are located. The folder you want to hide can even be on your desktop.

Right-click inside the folder

2. Select “New” from the contextual menu.

Select "New"

3. Click on “Text Document.”

Click on "Text Document."

4. Hit Enter. It doesn’t matter what the file will be named. You can delete this text file once the lockable folder has been made.

Hit Enter.

5. Double-click the text file to open it.

Double-click

6. Paste the below text into the new document:

Paste the below text

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-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

Tip solutie

Permanent

Voteaza

(9 din 17 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?