Wednesday, November 23, 2016

Code to create folder lock

cls
@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303--09D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
:CONFIRM
echo Are you sure you 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-08002B303--09D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303--09D}"
echo Folder Locked.
GOTO END

:UNLOCK
echo Enter password :
set/p "pass="
IF NOT %pass% == YourPassword GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303--09D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303--09D}" Locker
echo Folder Unlocked Successfully.
GOTO END
:FAIL
echo Invalid Password!
GOTO END

:MDLOCKER
md Locker
echo Folder created.

GOTO END
:END
PAUSE?

How to protect folder with password:


Here is an easiest way to lock folder in Windows 10, Windows 8 or older version. It's simple steps: 

 

code

 

 

 Folder lock without any software

  1. Create a new folder where you want to hide password protected folder
  2. Create a text document with notepad of any name,
  3. Copy the code from here to the text document,
  4. Change the text "Your password" into your desired password from the document.
  5. Save the document with any name as .bat extension and all file type,
  6. Double click on the .bat file will create a folder which one you can hide and open again with the password.
  7. Enjoy !!! 
codes to create folder lock

Watch the video to make this easily.