Translate

Friday, 18 April 2014

Trick to protect your files and folder using notepad, without any third party folder lock software.

1. Open notepad

2. Copy and Paste the code in notepad
    Start copying from next line (non-highlighted text only)

cls
 @ECHO OFF
 title Folder Secure
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
 if NOT EXIST Secure 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 Secure "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 the Password to unlock folder
 set/p "pass=>"
 if NOT %pass%== srikanth goto FAIL
 attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Secure
 echo Folder Unlocked successfully
 goto End
 :FAIL
 echo Invalid password
 goto end
 :MDLOCKER
 md Secure
 echo Secure created successfully
 goto End
 :End


3. Save as locker.bat (locker is the file name which is optional, you can put your own file name and ".bat" is mandatory without quotes).
file type : All files (set this in your notepad under the file name)

4.Create a New Folder anywhere, now copy this locker.bat file to your New Folder

5. Double click on Locker.bat
             -->A New Folder will be created with file name "Secure"
             --> Now copy your files or folders to this "Secure folder"
             -->come back and again double click on "locker.bat"
             -->You will be prompted "Whether to lock the folder Y/N"
             -->Click Y to lock or N to return back, (CAPSLOCK doesn't matter, it accepts both)
             -->When you click Y, the folder (Secure) will be locked and hidden

6. To open the hidden locked folder, Double Click on "Locker.bat" 
           -->You will be prompted to "Enter Password to Unlock"
           -->  srikanth       --->It is your default password

7. Now Folder (Secure) will appear and you can access to your files.


                                       ENJOY THE TRICK...............!

No comments:

Post a Comment