Our social:

How To Lock a folder without any software ?

Lock a folder :
Do you want to lock a folder without any software ?

If yes then you are at right place .

First of all open notepad and copy paste below code.



@ECHO OFF
title Folder Private

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDENTER PASSWORD TO OPEN
:CONFIRM
echo -----------------------------------------------------------
echo ================== Www.knowbatch.blogspot.com ==================
echo -----------------------------------------------------------
echo Are you sure you want to lock the folder(Y/N)
echo Press (Y) for Yes and Press (N) for No.
echo -----------------------------------------------------------
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 -----------------------------------------------------------
echo ================== Www.knowbatch.blogspot.com ==================
echo -----------------------------------------------------------
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== password 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
:MDENTER PASSWORD TO OPEN
md Private
echo Private created successfully
goto End

:End



In place of "password" just write your password .

Now save It as knowlock.bat.

do not forget to write .bat extension after lock name .

then run it . 

after you run this file you will show one folder name as Private is created . now whatever you want lock , just copy in this folder.

Again run .bat file & it will ask for confirmation give "y" to lock the folder .refresh your PC.

And what you show Your folder is now hidden and fully protected .

Now for unlocking the folder , open .bat file and enter your password to unlock .

You Can Also watch Video Tutorial :






That's It Friends ..!! I Hope You Like It ...:-)

Do not forget to give your response .