PDA

View Full Version : lock any folder without any software


ishanroz
02-16-2009, 07:32 PM
NoTe- Its different from invisble as well hidden folder....here u need to have a password with which u can open your filder

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 stuff by satish
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==TYPE UR 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 hav 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.

sudheera
02-16-2009, 07:35 PM
:shocked:amme thx...

isira87
02-16-2009, 07:36 PM
Re:D eth thankx!

crazycombo
02-16-2009, 07:38 PM
nice work!!!

LKS007
02-16-2009, 10:02 PM
appata siri godaak t\h\\x\\\\\\\\\\\\\\\\\\\\\

LKS007
02-16-2009, 10:04 PM
a\ne mage k\\\\\\\\\\\\\ey bo\rd eke\ \awl\ak

Octa HeliX
02-16-2009, 10:06 PM
a\ne mage k\\\\\\\\\\\\\ey bo\rd eke\ \awl\ak


Hik hik!!!!


Thanks for the tip!!!

tharkana
02-16-2009, 10:10 PM
thanx kollo

kasun.madhusanka
02-16-2009, 10:13 PM
Godak thanks.

tharkana
02-16-2009, 10:22 PM
hey repst nam mam mek dakala nane meet kalin

Dan01
02-16-2009, 10:41 PM
repost machan...
mamai mulinma post kare....

nadman
02-18-2009, 07:57 AM
Thank you machan very useful!:)

DJ ASHAN
02-18-2009, 08:25 AM
thankz

sganepola
02-18-2009, 08:57 AM
macho ela wedak..

Eth podi aulak awane:(

hidden files open kalama "locker" kiyana folder eka

" Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} "

kiyana namin hedila penawa. eka open karanna puluwan machoo..

Then can view contents:shocked:

I'm usin vista.. eka open nowenna hadanna berida saho....

amilabanuka
02-18-2009, 09:06 AM
This is not locking machan
"attrib +h +s" hide the folder and mark it as a system folder. in the folder option if you choose to view system files also this this trick is gone....

gayancc
02-18-2009, 09:07 AM
repost

freak88
02-18-2009, 09:11 AM
danne nathi aya danagannaa

asanka10
02-18-2009, 09:25 AM
ohh thnx

sganepola
02-18-2009, 02:21 PM
ela ela machooo...

mama try kala oka xp wala.. etakota ela wage weda..

When u double clik that hidden file it opens CONTROLL PANELLL...;) ;)

WoWW... Great...:cool:

coolnishan
02-18-2009, 02:24 PM
Tx Machanzz....

milindasenarath
02-18-2009, 02:29 PM
thanx
meke password eka type karanne koheda hariyatama

sganepola
02-18-2009, 03:05 PM
Place is highlighted...
-----// some part of the code
echo stuff by satish
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password 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
-----

NiyamaSinhalaya
02-18-2009, 03:41 PM
Brilliant.... Thanks a lot

Wolverine GTR
02-18-2009, 03:43 PM
Thanxxxxxxxxxxx

milindasenarath
02-18-2009, 03:47 PM
kawuruhari batch file eka delete kaloth meka arinne kohomada?

ishanroz
02-18-2009, 03:57 PM
sorry repost nam.....

nizamaj
02-18-2009, 04:06 PM
what is the point if you right click the batch file and select edit you can see the password !!!!!!!!!!!!!!

hasiwarna
02-18-2009, 04:08 PM
what is the point if you right click the batch file and select edit you can see the password !!!!!!!!!!!!!!

hmmm thats true !!

but nice coding!!

elazz elakiri wage weda..

isurunadu
02-18-2009, 04:37 PM
thankz

rifnet2006
02-18-2009, 04:58 PM
Tnx Bro..

sl.manju
02-18-2009, 05:08 PM
meka ela but batch file eka run kalama Pw eka disply wenawa .. so no point ... if u can fix dat thing . this wil be hlpful mor .. tks .....

thusi02
02-18-2009, 05:14 PM
Tip eka nam ela ban.eth ai ban ochchara wada wenne okata..........Jst use lock folder XP...Simple plan ekakne...

nizamaj
02-19-2009, 03:04 PM
Ya guys for folder password and give a password to a CD you can use a software call TrueCrypt its one of the best software as i know i have created lot of password protected CD and password protected pen drives !! using this software and its 100% free and open source !!

zeeyzka
02-19-2009, 03:12 PM
thnx

koze6600
03-11-2009, 08:54 PM
sirraa,thnx

PROF N.U.T LOOS
03-11-2009, 10:22 PM
Niyamai man,thanks a lot bro:P :D :yes:

acsakvith
03-11-2009, 10:32 PM
ela ela try karala malannam... thanx

thicps
03-11-2009, 10:37 PM
thanks a looooooooooooooooooooooooooooooooooooooooot

KHz
03-11-2009, 10:43 PM
Thnx lokka
Gr8 importance 4 me
:P:P:P:P:P:P
;);););););)