Share via

How do I password protect a folder

Anonymous
2020-03-10T01:50:51+00:00

How do I password protect a folder

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-03-10T02:04:22+00:00

    Hi CindyOverton1

    I'm Wilfredo S an Independent Advisor

    Select the folder that contains the files you want to encrypt or protect >> Inside the right click folder >> new >> Select "Text Document"> put any name> then double click on the file type the following:

    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% == And goto LOCK

    if% cho% == and goto LOCK

    if% cho% == n goto END

    if% cho% == N goto END

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

    Source> https://www.quora.com/How-do-I-put-a-password-o...

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    I hope it helps you

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments