Home > Windows Tricks > How to lock a folder without using any software in xp!

How to lock a folder without using any software in xp!

*Copy the following 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

* Now paste it in notepad.

* Change the “type your password here” with your password (Marked as bold & red in the above posted matter).

* Save it as batch file(with extension .bat).Any name will do.

* Now you see a batch file. Double click it to create a folder locker.

* A new folder named Locker would be formed at the same location.

* Now brings all the files you want to hide in the locker folder.

* Now double click the batch file to lock the folder namely Locker.

* If you want to unlock your files,double click the batch file again and you would be prompted for password.Enter the password and enjoy access to the folder.

  1. Mehreen
    April 10th, 2009 at 22:07 | #1

    u r just a devil!

  2. Maryam
    April 29th, 2009 at 20:01 | #2

    lol @devil :D

  3. jamal
    April 29th, 2009 at 20:20 | #3

    what if sm1 deletes ur .BAT file :p

  4. jamal
    April 29th, 2009 at 20:25 | #5

    lol….the locked content in the folder gets deleted too :p

  5. April 29th, 2009 at 20:26 | #6

    jamal :

    lol….the locked content in the folder gets deleted too :p

    you can open always unlock it by deleting the above entry from registry ;-)

    I hope you know what I said

  6. M umair
    May 2nd, 2009 at 23:04 | #7

    i don’t know so plz explain :(

    • May 2nd, 2009 at 23:06 | #8

      M umair :
      i don’t know so plz explain

      Simple
      goto regedit
      then search for 21EC2020-3AEA-1069-A2DD-08002B30309D
      and delete it ;-)

      NOTE: use at your own risk

  7. umair
    May 12th, 2009 at 21:49 | #9

    @Ahsun
    yar solution b bata rhay ho dara b rhay ho k main use na karun

    • May 12th, 2009 at 21:51 | #10

      lol, karlo karlo use :p , but it would be better not to delete the file .. if u do , then u’ve to do it manually and u might delete wrong entry in the registry , that is the reason i said use at your own risk

  1. No trackbacks yet.
*