Home » PC » How To Lock A Folder With Password Without Software (Windows 10 Tricks)

How To Lock A Folder With Password Without Software (Windows 10 Tricks)

Lock Folder With Password

Today I will guide you on how to Lock A Folder With a Password  Without any software in Windows 10. If you want to hide your files such as videos, Images /Photos from everyone Or , If you want to protect a folder with a password, Then this article will guide you.

Follow the steps :

1.Create a Folder and Create a Locker

First Create a regular folder. Then create a text file in the folder. In the text file copy the code from below and save it.  In the text file, You will the default password is-akashdharua , Change it and save it.

@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this 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 Private "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%==akashdharua goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDPrivate
md Private
echo Private created successfully
goto End
:End

2. Change the Extension

The file will work like a locker if we change the extension from .txt to .bat.

Just go to the view option and Tick mark on the view file extension.

Now right click on that text file, and Rename, .txt to .bat Extension.

3.Create a Private folder

Now after creating the bat file, double click on it, it will create a folder named “Private” Automatically.

Now Put your Secret Files here.

4. Lock and hide Private Folder

After putting files in the private folder, Now double click on the bat file, IT will ask you to lock or not, Type “y” and hit Enter, The private folder will disappear and it will be hidden.

To access or view the private folder again, Just double click on the bat file again and It will ask you the password. Give your password and the Private folder will Appear again, Where you keep your secret files /Videos /Photos.

So this is a Simple trick, Using it you can hide and lock files and folders in a Private folder.

Also Read,

https://testedtrick.com/pc/check-windows-10-genuine-original-1880.html

https://testedtrick.com/pc/windows-10-activation-free-1910.html

1 thought on “How To Lock A Folder With Password Without Software (Windows 10 Tricks)”

  1. Pingback: Facebook Data Breach 2021 - How To Check IF Your Email And Password Leaked ?

Leave a Reply