to the point sja
1. buat sebuah folder dengan nama apa saja (contoh disini : New Folder)
2. buka notepad, copy - kan script dibawah ini ke note pad dan simpan dengan nama : "kunci.bat"
ini adalah kodenya :
Code:
Quote: Quote: cls @ECHO OFF title Folder Private if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Private goto MDLOCKER :CONFIRM echo Are you sure you 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 Private "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%== password here goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Private echo Private created successfully goto End :End
pada baris if NOT %pass%== password here goto FAIL
ganti password here dengan password anda
3. nah sekarang kembali ke folder yang anda buat tadi, didalamnya ada file dengan nama "kunci.bat"
4. klik dua kali "kunci.bat", akan muncul sebuah folder dengan nama "Private"
5. copy file-file yang anda anggap perlu di privatekan ke folder "Private" tersebut
6. setelah dicopy file2 yang kita inginkan langsung klik "kunci.bat" lagi, nanti ada pertanyaan
Are you sure you want to lock the folder(Y/N) pilih Y
7. lihat hasilnya
untuk membuka folder tersebut klik dua kali "kunci.bat"
masukkan password anda
credit from : IDWS

0 komentar:
Posting Komentar