How to Lock folder without any software


Hello friends....Now i am going to tell you something really interesting.Many of you always want that their personel work should remain personel and no one can see it.And for that you need a software to lock the folder.But I will tell you 'How to lock folders without any software'.Just type this code in notepad or you can simply copy it and paste it in notepad and save it as "Locker.bat" on the desktop.
Now double click on the icon just appeared on the desktop named as "locker".Now a command prompt window will appear asking for the password enter the password and your folder will appear on the desktop itself.To again lock the folder type"y" in the command prompt window and your folder will again get dissapeared.

  • Note: Your password is that which is written in between "if NOT %pass%==" and  "goto FAIL" in the coding below.
    For example- Currently your password is "hackerinurmind".

cls
:End
@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%==hackerinurmind 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

2 comments:

alok said...

it's working...nyc!!

Jiten said...

Thxs....all tricks are working