Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Badguy13 Badguy13 is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 399
Rep Power: 14
Badguy13 mempunyai hidup yang Normal
Default script lock file sederhana

bagi agan yg memiliki file2 bokep, biar ga ketahuan org pake ini aja.

tinggal copy paste ke dalam notepad..






Quote:






Originally Posted by nih gan



@ECHO OFF

if EXIST "MyFilesLocked" goto UNLOCK

if NOT EXIST MyFiles goto MDMYFILES

echo Wanna lock the folder??(Y/N)

set /p "pilihan=>"

if %pilihan%==y goto LOCK

if not %pilihan%==y goto END

:LOCK

ren "MyFiles" MyFilesLocked

attrib +h +s "MyFilesLocked"

cacls "MyFilesLocked" /p everyone:n /e

cls

echo MyFiles folder is locked...

pause

goto End

:UNLOCK

echo Please insert password...

set/p "pass=>"

if NOT %pass%== passwordanda goto FAIL

cacls "MyFilesLocked" /p everyone:f /e

attrib -h -s "MyFilesLocked"

ren "MyFilesLocked" MyFiles

cls

echo Your forlder are uncloked...

pause

goto End

:FAIL

echo Wrong password!!!

pause

goto end

:MDMYFILES

md MyFiles

echo MyFiles folder is created

pause

:END

end











Lalu klik file n pilih "Save As" trus ketik nama filenya misal protect.bat dan save ss type nya pilih all files.



jalanin ajah protect.bat kamu dan akan muncul folder MyFiles. nah di dalem folder ini tempat kamu menyimpan benda2 rahasia. Setelah itu klik lagi folder MyFiles dan pasti muncul bacaan "Wanna lock the folder??(Y/N)" dan ketik y buat mengunci dan n buat batalin. setelah itu, folder MyFiles bakal ilang.



Selanjutnya untuk mengunci dan menyembunyikan Folder "MyFiles" Jalankan lagi File Kunci.bat dan akan keluar bacaan : "Mau Kunci Folder MyFiles ??(Y/N)" ketik y untuk mengunci atau n untuk membatalkan lalu tekan enter. Maka folder "MyFiles" sudah tersembunyi dan terkunci (tidak bisa dihapus, rename ataupun dicopy)



gimana kalo mau buka?? gampang, klik ajah protect.bat dan masukan password sesuai dengan kode warna merah di atas.



saran.. setelah dikunci, file protect.batnya disebunyiin ato dipindahkan ajah untuk menjaga kerahasiaan, karena mengandung password yang bisa dibuka dengan notepad. kalo mau buka, baru dicopy lagi ke folder tempat kamu menyembunyikan folder MyFiles.



jadi, kalo kamu ingin datanya kaga dibuka sembarangan sama orang lain, gampang, tinggal jalanin ajah langkah diatas

selamat mencoba!! work on win200 n xp.. dan 7



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 09:13 AM.


no new posts