Sunday 23 June 2013

How to Create Password Protected Folders in Windows 7

Sometimes we don't want to give access or to show our data to any other user of the same device. For this purpose windows 7 users use hide function or software's to make their files password protected. But now I'm going to share a trick based on simple script and steps by which you can create hidden locked folders.

Password Protected Files
Recommended: Experimented Methods to Close Internet Worldwide

Steps To Create Password Locked Folder

1. First of all go to your desired drive (d, e, f, etc.) and, create a new folder with whatever name.
2. Now open a new notepad (with in newly created folder) and paste the following code in it.
cls
@ECHO OFF
title Folder Techij
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Techij 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 Techij "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 FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Techij
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Techij
echo Techij created successfully
goto End
:End
3. Replace Password with the desired password for example 2by24 and then, save the notepad as .bat;  Check below screenshot as an example:
password folder windows 7

4. Once you done open folder (in my case it is Stuff) and do double click on a.bat file. Upon double clicked a new folder will open as Techij. Place your personal documents, images, etc. in Techij and then double click a.bat again and press Y and hit enter to hide techij file. To access your files open a.bat file and enter password.
Recommended: Free FileCleaner Pro For Windows | Best System Cleaner

In order to make your stuff more secure you can hide a.bat file too though properties.
Recommended: How To Boil an Egg without Water

Hannah Jones

Author & Editor

From Skopje, Macedonia, Also works as Software Quality Assurance.

0 comments:

Post a Comment