15 April 2010

bikin folder ter-password

pertama , buka NotePad dan isi kode2 di bawah ini !

cls
@ECHO OFF
title Folder david
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST david goto MDDAVID
:CONFIRM
echo yakin anda akan mengunci folder ini ??!?(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 david "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%==chita goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" david
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDDAVID
md david
echo Locker created successfully
goto End
:End

ubah bagian "if NOT %pass%==chita goto FAIL" yg tulisan chita jadi password folder yg ingin disembunyikan !
Lalu Save dgn type of file "All Files" dgn nama "*.bat"
Buka filenya , untuk pertama kali ia akan membuat sbuah folder bernama "david". Masukkan data2 yg ingin disimpan trus buka file "*.bat" tadi lalu tekan Y -> enter.
Maka ,foldernya akan hilang, u/ mengembalikannya lg buka file tadi dan masukkan password.

No comments:

Post a Comment