Sunday, August 26, 2012

How to lock your folder in window.



Some times we need to lock ours folder in window to have privacy/security with our folder.Window xp haven't  such functionality, but in window 7 you can lock your whole drive.Most of us used to hide folder in window.But if you need to lock your particular folder which you don't want to be access by other person, here is the very simple way to lock your folder in window.It will ask the given password at time of access..You don't have to download any software to lock your folder.


**********************************************************************************

cls

@ECHO OFF

title Folder Locker

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Locker goto MDLOCKER

:CONFIRM

echo Are you sure u 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-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%== type your password here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Locker

echo Locker created successfully

goto End

:End



**********************************************************************************

1. Firstly open a notepad and then put code in notepad.
2. You will find “type your password here” in that code (Without quotes) so just write your password in place of “type your password here” (Without quotes)
3. Save this notepad as Locker.bat anywhere you wish
4. Then double click on Locker.bat.
5. When you double click on this it will create ‘Locker’ folder automatically, After creating of this folder place the contents you want to lock inside the Locker Folder and run locker.bat again, So it will ask to lock this folder… So just type “y” (without quotes) then press enter. Your folder get disappeared that means you locked your folder. No one can see your files of your locked folder.
6. Now if you want to unlock folder then again double click on Locker.bat, It will ask your password so just enter password and then press enter, your folder get appeared.
7. If you have any problems with this then write your problem in comments. I will try to solve your problem.



No comments:

Post a Comment