How To Password Protect A Folder On Computer, Windows 10

            We can hide the folder in our computer but our computer often uses another person. and the person can also search for a hidden folders. and there are so many important files and document in our computer. which we do not want to share with anyone, and do not want show to anyone, for this we download many applications. and put a password to our folder. for this, our extra data goes waste to download that application and our computers little RAM is used, which ruins our time and data. but do you know that we can put a password to our folders with the help of computer. you do not need to download any applications to place a password in the folder.

STEPS↓↓ 


1. First create a folder and open it.

2. After opening the folder, click right click on new and select the text document.

3. Open that text document file and put a html code inside it. Code↓


cls
@echo off
title Folder Locker
IF EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­­09D}” GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
: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 Choice.
GOTO CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­­09D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­­09D}”
echo Folder Locked.
GOTO END
:UNLOCK
echo Enter password to unlock the Folder :
set/p “pass=”
IF NOT %pass% == Your-Pasword-Here GOTO FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­­09D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303­­­09D}” Locker
echo Folder Unlocked Successfully.
GOTO END
:FAIL
echo Invalid Password!
GOTO END
:MDLOCKER
md Locker
echo Folder created.
GOTO END
:END

4. After pasting the code, you have to enter your password. (image)


Enter Your Password

5. Click on file and click on save as. choose edit the name of the file while saving. Folder Locker.bat give a such name. and select an files by clicking below.

6. Delete the text document folder. but don't delete Folder Locker and open it.

7. There you will see locker and my folder. you can put anything in the locker folder.

8. Click on Folder Locker to lock the folder. press 'Y' and press enter. your folder will be locked.

Comments