Sunday 27 May 2012

LOCK ANY FOLDER USING NOTEPAD

LOCK ANY FOLDER USING NOTEPAD

HY guys,

                Today i m going to write about how to lock folders or files just by using a notepad. I think it is safe to use this trick other than a softwares like folder protect, folder locker,etc bcozz they can be cracked easily.

so let us follow some steps to know how to do that ...........

STEP 1: press windows button + R from the keyboard. then a dialog box appears as shown below:

 

                    now write "notepad.exe" in the box and press enter. Notepad opened now.

STEP 2: Now copy and paste the below code in notepad and save it as folderlock.bat .but replace the "type your password here" with the password which u want to use to unlock it.

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 


 

SEE IMAGE TO KNOW HOW TO SAVE IT.

                







REMEMBER TO END THE NAME AS .bat AND NOT .txt .




SAVE IT WHERE U WANT TO HIDE THAT FOLDER WHICH U WANT.

STEP 3: Now double click the file which u saved as "folderlock.bat",then u see a new folder named "locker" is visible to you in the same location.




Now put the Data Inside the folder Locker and again Double Click the Batch file to Lock it, this will give you a prompt, just Type y and press Enter:

 









To unlock the folder again you just have to double click the "folderlock.bat" again, this will give u prompt "enter your password to unlock". Then write the password you set and press enter. Your folder is unlocked now.

 Now keep the Batch File named FolderLock.bat in a different place like your USB Pen Drive so that only you can access the Folder you have locked.


I hope guys you understand it well.If you have any question or doubt, please leave a comment and I will get to you as soon as possible and will help you to best possible way.senyum


No comments:

Post a Comment