June 18, 2012

Lock File and folder in XP using notepad trick..!!!

Hi All,
Windows XP notepad is having very silent features as some we don't know about it.
As many times we need to lock our very important files to avoid unauthorized access from other user.


So do this here is very simple trick in which you do not need to install any 3rd party software or application in your PC.
Just follow below steps to implement this trick:-
1. Open notepad in widows XP.
2. Then after just copy and paste below simple code into notepad.


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%==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
3. Instead of  “YOUR PASSWORD HERE” just put your own password.
4. save this file as .bat with any name you want for e.g. Locker.bat
5. Now open this saved batch file by double click so it will create new Locker folder there.
6. Just Bring all your files that you want to lock or hide in that locker folder.
7. If you want to unlock your files, simple double click the Locker.bat file again and you would be prompted for password ( In DOS window ). Enter the password and access to the folder.

Enjoy this lovely trick to lock your personal & private files.

"Please share this if you like this...!!!"

1 comments:

Twitter Delicious Facebook Digg Stumbleupon Favorites More