TBD.my
Folder Lock Using CMD - Printable Version

+- TBD.my (https://w3.tbd.my)
+-- Forum: Sharing (https://w3.tbd.my/forum-73.html)
+--- Forum: Tools (https://w3.tbd.my/forum-6.html)
+---- Forum: Batch,shell,Dos,virus (https://w3.tbd.my/forum-39.html)
+---- Thread: Folder Lock Using CMD (/thread-3284.html)



Folder Lock Using CMD - sno0p - 30-01-2009

cls
Code:
@ECHO OFF
title Snoop Lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Snoop goto MDSnoop
: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 Snoop "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder is successful locked...
pause
goto End
:UNLOCK
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}" Snoop
echo Folder Unlocked successfully
echo Done!!
pause
goto End
:FAIL
echo Invalid password
echo Fail!!
pause
goto end
:MDSnoop
md Snoop
echo Snoop created successfully
goto End
:End



*save dalam *.bat
Ni dah lama tapi aku post kan bagi member2 kita yang tak tahu... Smile


Re: Folder Lock Using CMD - MieXoX - 30-01-2009

sno0p Wrote:cls
Code:
@ECHO OFF
title Snoop Lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Snoop goto MDSnoop
: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 Snoop "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder is successful locked...
pause
goto End
:UNLOCK
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}" Snoop
echo Folder Unlocked successfully
echo Done!!
pause
goto End
:FAIL
echo Invalid password
echo Fail!!
pause
goto end
:MDSnoop
md Snoop
echo Snoop created successfully
goto End
:End



*save dalam *.bat
Ni dah lama tapi aku post kan bagi member2 kita yang tak tahu... Smile


hmmm camner nk set pw ? boleh gune colour x ? nk tgk ape changes ? saya x paham la...thx


Re: Folder Lock Using CMD - sno0p - 31-01-2009

otaigile Wrote:hmmm camner nk set pw ? boleh gune colour x ? nk tgk ape changes ? saya x paham la...thx

Code:
@ECHO OFF
title Snoop Lock  ---<Title
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Snoop goto MDSnoop  ---<1
: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 Snoop "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"  --<3
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder is successful locked...
pause
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL   <---2
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Snoop  ---3
echo Folder Unlocked successfully
echo Done!!
pause
goto End
:FAIL
echo Invalid password
echo Fail!!
pause
goto end
:MDSnoop  ----<1
md Snoop   ----<3
echo Snoop created successfully
goto End
:End
*Benda yang boleh anda ubah

1)MDSnoop
2)password
3)Snoop


Re: Folder Lock Using CMD - MieXoX - 31-01-2009

sno0p Wrote:
otaigile Wrote:hmmm camner nk set pw ? boleh gune colour x ? nk tgk ape changes ? saya x paham la...thx

Code:
@ECHO OFF
title Snoop Lock  ---<Title
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Snoop goto MDSnoop  ---<1
: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 Snoop "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"  --<3
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder is successful locked...
pause
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==password goto FAIL   <---2
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Snoop  ---3
echo Folder Unlocked successfully
echo Done!!
pause
goto End
:FAIL
echo Invalid password
echo Fail!!
pause
goto end
:MDSnoop  ----<1
md Snoop   ----<3
echo Snoop created successfully
goto End
:End
*Benda yang boleh anda ubah

1)MDSnoop
2)password
3)Snoop


boleh buat colour merah x ? susah le...thx


Re: Folder Lock Using CMD - sno0p - 31-01-2009

@ECHO OFF
title Snoop Lock
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Snoop goto MDSnoop
: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 Snoop "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" --Love
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder is successful locked...
pause
goto End
:UNLOCK
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}" Snoop
echo Folder Unlocked successfully
echo Done!!
pause
goto End
:FAIL
echo Invalid password
echo Fail!!
pause
goto end
:MDSnoop
md Snoop
echo Snoop created successfully
goto End
:End



*p/s :yg warna 2 leh tukar.


Re: Folder Lock Using CMD - MieXoX - 21-02-2009

lol x paham le..


Re: Folder Lock Using CMD - sno0p - 21-02-2009

MieXoX Wrote:lol x paham le..

mana yang x fhm MieXoX??? :emy_39:


Re: Folder Lock Using CMD - suhz - 21-02-2009

aku mcm penah jumpa benda ni snoop... tp dulu aku jumpa bkn nama snoop :emy_18:
org lain yg buat.. aku x inagt mane tah aku letak bendalah tu.. hehe


Re: Folder Lock Using CMD - amsama - 21-02-2009

Ko cube dulu copy script tu, buat seperti yang disuruh, save as .bat.
lepas tu click. nnti keluar 1 folder. tgk je script tu, tgk folder ko, nnti ko faham lah.

gune .bat ni xsecure la. adik aku jumpe, die edit dah nampak pon nk unlock folder tu >.<

*edited
lupe la ape aku nak cakap.


Re: Folder Lock Using CMD - sno0p - 21-02-2009

suhz Wrote:aku mcm penah jumpa benda ni snoop... tp dulu aku jumpa bkn nama snoop :emy_18:
org lain yg buat.. aku x inagt mane tah aku letak bendalah tu.. hehe


mmgla...
aku pun banyak jmpa org lain buat....cuma ada yg dia link ke Recyle Bin,C.Panel...
dan lain-lain....
:emy_56:


Re: Folder Lock Using CMD - kura_kura - 14-03-2009

lolz...
ko try jerk wat dulu....
nanti ko edit la plan2....
nt phm pnyer.... :emy_08:


Re: Folder Lock Using CMD - azraindie - 01-08-2009

*save dalam *.bat

mendaklah tu??


Re: Folder Lock Using CMD - Dadu - 02-08-2009

azraindie Wrote:*save dalam *.bat

mendaklah tu??
wakakkaka


cmnie la !

ko open wordpad then ko paste la bnde halah pnjang tuh then ko save la! contoh ko save nme dye! lalala tpi kat blakang lalala tu ko kne letak .bat so jdi la lalala.bat


Re: Folder Lock Using CMD - Xantium - 30-08-2009

Mana Nak Set Password ??
aku pon tgh pelik ni
huhu


Re: Folder Lock Using CMD - Tuah - 30-08-2009

dl pernah bt bnd nih.. tp ak rs bkn lock.. tp hide folder kot.. huhu