Tuesday, 4 June 2013

ari ni aq nk kongsikan tutorial psl kunci folder gna cmd...aq dh lama jumpa tp lupa nk share...
kalau ni pon bleh digunakan tuk sorokkan file..cmd yg kita buat ni kna sorok tempat lain
cara nk buat copy suma ni pas 2 save as .bat...kalau nk tukar nama folder tukar kt kod yg tulis my-privacy-folder 2...file bat ni bila ko tkn dia akan buat satu folder baru mengikut nama yg ko ltk...bahagian kod password 2 ko ltk la pass yg ko nk ltk...


CLS
@ECHO OFF
Title Folder My-Privacy-Folder
If EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto SANDINYA
If NOT EXIST My-Privacy-Folder goto MDFOLDER
:KONFIRMASI
Echo Apakah Anda ingin mengunci My-Privacy-Folder ini ? (Y/N)
Echo Tekan Tombol [Y/y] atau [N/n].
Set/p "cho=>"
If %cho%==Y goto KUNCI
If %cho%==y goto KUNCI
If %cho%==N goto END
If %cho%==n goto END
Goto KONFIRMASI
:KUNCI
Ren My-Privacy-Folder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
Attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
Echo My-Privacy-Folder Terkunci
Goto End
:SANDINYA
Echo Masukkan passwordl Anda!!
Set/p "pass=>"
If %pass%== password goto BUKA
If NOT %pass%==password goto SALAH
:BUKA
Attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
Ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" My-Privacy-Folder
Echo My-Privacy-Folder sudah di buka
Pause
Goto End
:SALAH
Echo rilek la salah password la brader !!!
Pause
Goto End
:MDFOLDER
Md My-Privacy-Folder
Echo My-Privacy-Folder berhasil dibuat.
Pause
Goto End
:End

0 comments:

Post a Comment