Lock Computer files with password

We all have computer files we'd like to keep secret from the world. Fortunately, in Windows 10, you can tuck those unmentionable plans or files in a secret folder that is password protected, and you can do it without buying any additional software.

Follow the steps below to set a password protected folder

  • 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.
  • Select "New" from the contextual menu.

  • Click on "Text Document."

  • Open the new document and paste below text in it

    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




  • Find where it says "Your-Password-Here" in the document


Replace "Your-Password-Here" with the password you want to lock the folder with.
  • Click File and select Save as
  • Double-click Nickylytech.bat or whatever you saved yours to; Immediately a command prompt will flash on the screen. This means "The folder locker has been created"
  • To unlock the folder, double-click "Nickylytech.bat" you saved to open it.

Comments

Popular posts from this blog

📵 Is MTN Ghana Deliberately Killing RCS? Users Cry Foul as 'Carrier Not Supported' Message Replaces Free Chat

How to copy whatsapp statuses using file manager