Minggu, 30 Mei 2010

Lock folder tanpa Software


langsung aj y ke cara penggunaannya

1. buka notepad lalu copy script berikut dan pastekan k notepad

@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Foldernya bener mau dikunci?(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}"
msg * Folder has locked
goto End
:UNLOCK
echo password please
set/p "pass=>"
if NOT %pass%==123456789 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
msg * Folder Unlocked successfully
goto End
:FAIL
msg * password yang anda tulis salah
goto end
:MDLOCKER
echo apa anda mau buat folder locker ???(Y/N)
set/p "cho=>"
if %cho%==Y goto MDDIR
if %cho%==y goto MDDIR
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto MDLOCKER
:MDDIR
md Locker
msg * Locker created successfully
msg * Silahkan isi yg mw di lock di folder "Locker"
msg * kalau sudah klik program ini lagi untuk menglock
goto end
:End

2. save as notepad tersebut dgn nama lock.bat *nama boleh apa aja yg penting
belakangnya .bat*

ket:
passwordnya bisa anda liat di scrip yaitu 123456789 anda bisa ganti sesukanya

met mencoba ^^

3 komentar:

http://blogergadgets.googlecode.com/files/blogger-page-navi.v1.js