Thursday, March 1, 2012

Lock ur private folder without using any software

           Here is a trick using which you can lock any folder on windows without installing any software.


                   Copy the code provided below exactly and paste it into notepad (Start > Run > Notepad). Save as protect.bat and exit notepad. Double click on protect.bat and you will see a new folder on your desktop called “Locker”. Copy all the files you need to be hidden there. Double click on protect.bat again, and it will ask you if you want to hide the folders, type in y and press Enter. To un hide, double click protect.bat, type in your password and press enter. That’s it!

Following is the code you’ll need to this stuff,


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%== thisIsMyPassword 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

In the above code, don’t forget to edit the line that have your password the above code.:-click for download

if NOT %pass%== thisIsMyPassword goto FAIL

2. Save the file as “locker.bat”. You are done. When you’ll double-click on the locker.bat file for first time, a folder “locker” will be automatically created. You can move all your confidential data in that folder.

Now to lock the folder just double-click on the file “locker”. You will get a confirmation message in Command Prompt. Type “y” to confirm. Now the folder “Confidential” will be locked and hidden.



    If you want to get access to the contents of the folder then again double-click on the batch file, you have created. Immediately you will be prompted to enter your password. After that you can get access to the folder “locker”.



 for that bat file :download

Update - Check out the following video tutorial that illustrates this trick,



6 comments:

  1. enter passwoed for unfoldlocker is not shown

    ReplyDelete
  2. Hi Below error coming ,

    "Are you sure u want to Lock the folder(Y/N)
    The syntax of the command is incorrect.
    goto was unexpected at this time."

    ReplyDelete
  3. this code for xp and some windows 7 pc

    ReplyDelete
  4. any one try this in xp....????

    ReplyDelete
  5. sir, i did it when i click on that file a foleder named locker a create automatically but when i again click nothing happen it doesn's ans for any password reply me what to do.
    even i downloaded that file from ur website but prblm is the same.

    ReplyDelete