How to Create a Password Protected Folder without any Software



There are lot of methods to lock folder on computer for this you don’t need to use any third party software. I will show you, how to lock folder without using any software. If you computer is used by more than one users, you can secure your confidential data from other users. So you can place all data which you want to hide from other users in this folder. Importantly, this will conceal your data from somebody.



It is very easy to protect/hide your valuable folders with a quick batch script.

Just follow the simple steps given below:-

Create A Password Protected Folder

Open a Notepad on your computer.


Copy & Paste the following code in the Notepad

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
: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 Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== YOUR_PASSWORD_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

Change the text YOUR_PASSWORD_HERE in the above code with password of your choice.

Save As the Notepad document as any file name of your choice with a extension .bat (E.g.: locker.bat). 

Now run the batch file by double clicking on it.
This will create a folder named Private just besides the locker.bat file.


Place all your secret things in this Locker folder which you want to protect/hide from other users. When you finish adding all your stuff to the Private folder.

Double click on locker.bat again.This will prompt for your permission to lock the Private folder. If you want to lock the Private folder, type Y otherwise type N and hit Enter.


You will find that the Private folder goes disappear.
If you run the script yet again, you will prompt for a password.


If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.
Try it!!! Its FUN ;-)

{ 0 comments... read them below or add one }

Post a Comment