Lock a folder without any software

nipuna92

Junior member
  • Mar 28, 2009
    163
    3
    18
    Planet Earth [Where Else!]
    If repost sorry

    Ok here we go

    To Lock a folder in windows XP without any software
    follow the steps below-
    Make a folder in C Drive,rename it as 'abc' without quotes
    now open command prompt from start menu. Type-
    "attrib +s +h C:\abc"
    with quotes and press enter. This command will Make your folder invisible and
    it can not be seen even in hidden files and folders. To make visible again type -
    "attrib -s -h C:\abc"
    You can lock any folder also by changing the location C:\abc
    to address of your folder:)

    It works in vista also as i tried it on vista.
     

    chry

    Member
    May 12, 2008
    1,435
    109
    0
    Colombo
    Folder options wala show windows protected and system files option eka select kaloth oya folder eka visible wenawa.
     

    Core

    Member
    Jan 23, 2010
    3,120
    195
    0
    Milky Way/Local Cluster/Local Sol/Earth
    Try this

    1) Open Notepad and copy the contents of the code below. ( Or Click here to get the code in .doc format)
    Update: The code given in earlier link is incorrect, please use this new link in .doc format
    lock-without-sw.PNG
    2) Change the password by replacing ‘type your password here‘ in the code with your password.

    3) Save it as XYZ.bat (Note: Try to be innovative and save it in such a way that it sounds like a system file so that nobody will try to bother clicking it)
    code-file-for-folder-lock.jpg

    Update: If you are not sure how to change the file extension from .txt to .bat, check How to Change File Extension in Windows.
    4) Close the file if it is still opened and double click XYZ.bat
    5) It will create a new folder called ‘Locker’ automatically. (If you want the file name to be different, find and replace Locker in the code with the name of your choice). This new locker folder will be created in the same hierarchy as the .bat file.
    new-locker-folder-created.jpg

    6) Place the contents inside and double click XYZ.bat, it will ask whether you want to lock. Say ‘Y’ and now your folder will disappear.
    place-any-files-inside-the-locker-folder.jpg

    lock-the-folder.jpg

    7) To view again, double click XYZ.bat again and enter your password.
    enter-password-to-unlock.jpg

    Frequently asked questions:
    1. What if I no longer want to hide the folder?
    Just delete the XYZ.bat file when the locker folder is in visible mode. Or you can rename the Locker folder to something else and the next time if you double click, it will create an empty Locker folder.
    2. What if I deleted the .bat file when the Locker folder is not hidden?
    You can download the code again, change the password and create the XYZ.bat file. Now paste that file in the same hierarchy as the Locker folder. It will work as before with the new password.
    3. What if I deleted the .bat file when the Locker folder is hidden?
    The contents are still there hidden, so don’t panic! Just download the code again, change the password and create the XYZ.bat file. Now paste that file in the same hierarchy as the Locker folder is hidden. Double click the .bat file and you can unlock the Locker folder with the new password.
    Note: This trick is only to provide Privacy, so that nobody accidentally opens your private folders. It does not provide any ultimate security. Anybody can open XYZ.bat in any text editor and view the code. As I had mentioned it before try to keep this file in not an obvious place with a name that looks like a system file, so that nobody will have a chance to touch or doubt at this file.

    Reference (){
    http://www.lytebyte.com/2007/06/25/...lders-in-windows-without-additional-software/ ;
    2010/04/05 ;
    }