Hide and Password lock a Folder in Windows PC with CMD in 2021

By | August 22, 2021

In this quick guide I will show you how to create a private folder and lock it with a specific password of your choice in a few easy steps.

How to lock and unlock important files and folders and other media files on your Windows laptop or desktop computer by locking them in a secret and hidden folder. You can place this folder wherever you like on your PC, and you need a specific password that you will create to unlock it, and it is a very simple way that won’t take more than 1 minute of your precious time and no extra paid software to install to work.

For this to work, you will need a special text code which you can find below and copy and paste it in a text file editor of your choice.

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%== 123456 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

In the end, just go to File and select Save As in your text editor and select all and remove the .txt and replace it with a .bat

Or watch the video guide I made, and it will show you all the simple and easy steps necessary.

Here is the link of the original creator:

https://gist.github.com/remyarajeshpaedh/3760194

Leave a Reply

Your email address will not be published.