How To Lock Any Folder Without Any Software In Win XP & Win 7 - Full Tutorial

Lock Any Folder Without Any Software In Win XP & Win 7
Hello MHWorlD Readers :)
Learn How to Lock a Folder Without Using Any Software with Batch File in Windows XP, Windows 7, Windows 8. Many people around the globe daily searches for Folder Locking Software. But most of them are not registered and that's why people searches for the way by which they can make a password protect folder without using any third party software.

Reasons for Locking a Folder with Password

There are many software that will provide you this feature but there is a problem with that. if by any means that software is un-installed you might loose you personal data because of the login credentials will be deleted. In this tutorial you will learn to create your own method to lock a folder with a password protection.

How to Lock a Folder Without Using Any Software

There are simple steps to make password protected folder without using any software. Follow these steps and enjoy!
STEP-1: Open Notepad and Paste the following coding in it.
STEP-2: Choose desired password by changing PASSWORD in below given code.
STEP-3: Now Save As this file and name it as Locker.bat
STEP-4: Just Move Locker.bat file in the folder where you want to create the hidden or password protected folder and then open it.
STEP-5: Then Copy all of your that you want to lock in newly created folder naming Private.
STEP-6: Again open Locker.bat and type "Y" to Lock or "N" To Exit. then press Enter.
STEP-7: If you want to Open folder, launch Locker.bat and enter password and press Enter.



Code to Password Protect a Folder
cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Do You Want To Lock The Folder? Answer In (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...!!
pause
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 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...!!
pause
goto end
:MDPrivate
md Private
echo Private Created Successfully...!!
pause
goto End
:End
Editors Review: I tried my best to explain Locking of a folder without Any Software, but still if you have any query, feel free to comment below. your comment will be appreciated and replied as soon as possible. You can contact me on Facebook

Post a Comment

0 Comments