A lame method to lock a folder without using any special software

Do you have some files/pictures/videos to hide from your children; perhaps some old collection of your own naked pictures? Although this technique is not perfect and can be easily defeated, I’m sure a newbie wouldn’t be able to find your “locked” folder.

Here is the code

 

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

Instructions::

1) Copy the give code in a note pad and save the note pad in your pc with the name name.bat (that is with the extension of .bat). you can replace the name portion with anything u want.

Note– In place of password in the code given type your desired password.

2) A batch file will be created where you have saved. Now double click on it , it will make a folder with the name locker at the same place where the batch file is save.

3) Now add the files you want to be locked in that folder.

4) Double click on the batch file. It will ask for locking the folder formed. Type y(yes). The folder will be locked and hidden.

5) To unlock,double click on batch file again and enter the password in the new window opened.

6) Dont forget to hide the batch file!

Source 

17 Responses to “A lame method to lock a folder without using any special software”

  1. doktor pun cuti macam cikgu ke ?

  2. that’s why la… mana la pegi tuan rumah ni… lama tak hupdet..

  3. eh, kalau aku guna id azwan gak, nanti tak clash ke ngan dr azwan?

  4. :shock: It will take ages for me to unlock it!

  5. Good sugestion, i will try this one.

  6. Good info….

    Salam kenal dari Teratak Nurani…

  7. my comment on this accidentally at wrong post..gosh, maybe too sleepy.

  8. Test comment from Megatron.

  9. This info is quite good.

  10. It’s gud to see that u mentioned the source of this information directing the link to my site .. Thanx !!! But ur page rank has now been reset to zero … What happened … Mine recently increased to 3 . U seem experienced blogger , can u has a look at my site and suggest something to improve my earning .. Thanx !!!

  11. why called it lame if it’s a good idea?

  12. itna laaaaaaaaaamba method hy…..koi short bata na yar

  13. It is quite useful for many people.:P I will try it out.

  14. thanks for the batch file. its the oldest trick since the days of IBM PC

  15. Tuan Doktor,
    Saya dah lupa cara nya nak install software kat PDA. Ada yg dah tak blh pakai. Kalau blh saya nak cuba buat sendiri supaya tak lupa caranya.

  16. hi,

    i would like my website http://www.fyroo.com to be review by your blog. how much does it cost?

    also if possible to exchange link?

    please contact me at support@fyroo.com

  17. Thank you for so much tipps. i like to read here. is everyday very informative :)

Leave a Reply