3

How to Create Password Protection to Your Folder In Windows 7

In this post you will learn to create password protection on any of your folders, files which you want to keep private from others to see it, normally there are too many free softwares to lock your folder, but free software can expire and can permanently lock your all folders and files, which will surely put you in trouble to loss in files.

What you need to do is you just have prior knowledge of batch(.bat) files, if you don't have, then no need to worry, I am giving step wise instruction that will help you to learn.Create a folder with a choice of your name, and in that folder create a new text file, and just copy paste the following code in that text file



cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "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%== Your_Own_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
:MDLOCKER
md Private
echo Private created successfully
goto End
:End






1. From above code just replace Your_Own_Password to your password which dont forget in future, because this one only can open your folder and edit this file in future, so don't forget password that you are going to replace now. And after that save filename as password.bat don't save as password.bat.txt.


2. Now double click the batch file that just created in your folder, and you will notice that in your folder one more folder named Private is created, this is your private folder you can move your all secret data, files or folders in this Private folder.


3. After completion of copy process again double click on password batch file which will now open a command prompt asking you to continue for locking process if you are sure to lock then press 'Y' or press 'N'. 


4. After you pressing 'Y' and hit enter, Private folder from your folder will get disappeared and if you again want this folder back you need to just double click batch file and this time it will ask for your password to type, enter your password and hit enter will show Private folder to access your secret data.


Enjoy this trick, and secure your personal data. Thanks for reading my post.


Enhanced by Zemanta

3 Comments


Your blog is very informative and gracefully. Your guideline is very good. Thank you CCTV Surveillance Services in Bangalore | CCTV Surveillance Systems in Bangalore


Cyber Fire and Security a specialist company based in London. We are also provide CCTV Installation London, Alarm Systems, and Access Control Systems. We promise to deliver to you the best technology and CCTV equipment installed by our professional CCTV installers London. From our base in Central London as we are competitive CCTV companies London, we can deliver complete CCTV solution.


Your blog is very interesting. Thanks for sharing nice information on Video Door Phone in Bangalore | CCTV Surveillance Services

Post a Comment

Copyright © 2009 Techno Gossiper All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.