Folder Lock without any Software

Discussion in 'General Chat' started by moinuddin102, Dec 25, 2007.

  1. #1
    May be this is wrong forum (in General Chat).
    If this is wrong forum, to moderator, please moved it to a right forum.

    & I got it in a warez forum. So, not possible (against DP Forum rules) give backlink to source.

    Folder Lock without any software

    Many people have been looking for an alternative way to lock Folders without the use of any alternative software. So, here you go.

    Open Notepad and copy the below code and save as locker.bat. Please don't forget to change your password in the code it's shown the place where to type your password.
    Now double click on locker .bat
    First time start, it will create folder with Locker automatically for u. After creation of the Locker folder, place the contents u want to lock inside the Locker Folder and run locker.bat again.


    hope this comes in handy Smile



    
    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
    
    Code (markup):
    in this line:
    if NOT %pass%== type your password here goto FAIL
    change this "type your password here" with your password.
     
    moinuddin102, Dec 25, 2007 IP
  2. mopguy

    mopguy Active Member

    Messages:
    733
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    70
    #2
    this won't work when one just need to look at the source of the .bat to know the password
     
    mopguy, Dec 25, 2007 IP
  3. axs

    axs Guest

    Best Answers:
    0
    #3
    I read others that won't work but this one actually works.
     
    axs, Dec 25, 2007 IP
  4. Minh

    Minh Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Neat trick, thanks man.
     
    Minh, Dec 25, 2007 IP
  5. greatkhali

    greatkhali Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    listen when one can easily protect folders using many free folder or file locking software.. so why go for this bat file locking system......
     
    greatkhali, Dec 25, 2007 IP
  6. Paxil

    Paxil Banned

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Works great. Thanks.


    So we don't have to download and waste memory. :p
     
    Paxil, Dec 25, 2007 IP
  7. axs

    axs Guest

    Best Answers:
    0
    #7
    I noticed if you right click on locker.bat and click on Edit then you can see the password.
     
    axs, Dec 25, 2007 IP
  8. jeeta

    jeeta Banned

    Messages:
    480
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #8
    works perfect. thanks for sharing :)
     
    jeeta, Dec 25, 2007 IP
  9. terminator69

    terminator69 Notable Member

    Messages:
    4,872
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    230
    #9
    Where did you see that rule?
     
    terminator69, Dec 26, 2007 IP
  10. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Put the bat file inside the locked folder. I don't know, lol.
     
    Dondon2d, Dec 26, 2007 IP
  11. moinuddin102

    moinuddin102 Peon

    Messages:
    743
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #11
    is linking to warez sites allowed here?
    If yes, then I can give it. I have no problem.
     
    moinuddin102, Dec 26, 2007 IP