Sunday, March 24, 2013

How to lock a folder in Windows 7 without using any third party software?


There’s a way to lock folder in Windows 7 without using any third party software. It might be little difficult for average computer users. In this post, I’m describing that way briefly:

  1. Create a New Folder: Right click on desktop or in any other folder (where you want to lock your files.) then, go to “New” and then choose “New Folder”. Name the folder for whatever you want to.

  2. Create a Text Document: Now open the folder you just created and right click on the blank space. Go to “New” and then click on “Text Document”.

  3. Paste a Particular Text: Open the Text Document and paste the following text in it.
    cls@ECHO OFFtitle Folder Privateif EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCKif NOT EXIST Private goto MDLOCKER:CONFIRMecho Are you sure you want to lock the folder(Y/N)set/p "cho=>"if %cho%==Y goto LOCKif %cho%==y goto LOCKif %cho%==n goto ENDif %cho%==N goto ENDecho Invalid choice.goto CONFIRM:LOCKren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"echo Folder lockedgoto End:UNLOCKecho Enter password to unlock folderset/p "pass=>"if NOT %pass%== PASSWORD goto FAILattrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Privateecho Folder Unlocked successfullygoto End:FAILecho Invalid passwordgoto end:MDLOCKERmd Privateecho Private created successfullygoto End
    :End

  4.  Write your Password: Now look for the word PASSWORD in the text and replace it with your password.For e.g.-  If the Password is askyourhow (See the image below)

  5. Save the Text Document: Now the Text Document in the “.bat” format. Name it as “locker.bat”. (Don’t forget to change the “Save as” type to “All files”.)

  6. Now open the file you made in Step 1 and again open the file “locker.bat” A new folder named as “Private” will be created. This is the folder where you have to paste everything you want to hide and lock.

  7. Now again open the “locker.bat” file, a new window will appear asking “Are you sure you want to lock the folder?”
  8. Press Y and Enter, the “Private” folder will disappear.

  9. \Retrieve your Files: To access your locked files, open the “locker.bat” file. A window will appear asking “Enter password to unlock folder”. Enter your password and your folder will be back.


Important Note: This method is not 100% secure. Check out the post s below for a secure locking:
How to a Lock Folder using third party software "SysTools Folder Key"?
How to Lock a Folder on Windows-7?

I hope this will be helpful for you. If any of the readers want to add anything important in this article than share it with us in comments.

Stay tuned to know more about Gadgets, Windows, Care etc. Don't forget to like us on Facebook and follow us on Twitter and Google Plus.


16 comments:

  1. This script is 100% waste.

    we can easily view password if we try to edit the batch file.

    ReplyDelete
  2. 100% waste.
    we can see the password if we open the batch file in edit mode.

    ReplyDelete
  3. ha ha ha..... OLD SCHOOL.

    ONE CAN EASILY OPEN THE FOLDER FROM "FOLDER OPTIONS" LIKE SHOW HIDE PROPERTIES...

    ReplyDelete
  4. Thank you, I’ve just been searching for info approximately this topic for ages and yours is the greatest I’ve came upon so far. However, what in regards to the conclusion? Are you positive in regards to the source?

    ReplyDelete
  5. here Is A PRACTICAL LIVE DEMO of above steps
    Watch this

    http://www.youtube.com/watch?v=dz3wlAnQs7M

    Here is A video WHO HAS A PROBLEM WITH BATCH FILE
    watch this

    http://www.youtube.com/watch?v=Mr95m34Z_wk

    ReplyDelete