loading...

Batch :: Mengunci Folder

Batch adalah kumpulan perintah-perintah command line yang dapat dijalankan pada Microsoft Windows. File batch biasanya berekstensi .bat atau .cmd. Pemrograman Batch sangat sederhana, cukup ketik source code program di notepad atau text editor lainnya lalu simpan dengan ekstensi .bat. Sebagai contoh, berikut adalah source code aplikasi pengunci folder menggunakan batch :

@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%== 12345 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

Pertama-tama jalankan file batch yang sudah dibuat, jika sudah muncul folder dengan nama Private, masukkan data-data yang ingin anda kunci di situ, lalu jalankan lagi file batch.

Password = 12345, silahkan diganti sesuai keinginan.

Tips : Untuk mengcompile file .bat menjadi ekstensi .exe, silahkan gunakan compiler berikut :
http://www.f2ko.de/English/b2e/download.php

Selamat mencoba!

10 Responses to Batch :: Mengunci Folder

  1. … [Trackback]

    […] Find More here|Find More|Read More Informations here|Here you can find 93654 more Informations|Infos on that Topic: blog.loksado.com/batch-mengunci-folder […]

  2. Bdsm says:

    … [Trackback]

    […] Find More on|Find More|Find More Infos here|Here you can find 37096 additional Infos|Infos to that Topic: blog.loksado.com/batch-mengunci-folder […]

  3. … [Trackback]

    […] Find More on|Find More|Read More Informations here|There you will find 89807 more Informations|Informations on that Topic: blog.loksado.com/batch-mengunci-folder […]

  4. Boliden says:

    … [Trackback]

    […] Find More on|Find More|Read More Infos here|Here you will find 22890 additional Infos|Infos to that Topic: blog.loksado.com/batch-mengunci-folder […]

  5. immigrazione says:

    … [Trackback]

    […] Read More on|Read More|Find More Infos here|There you can find 16539 additional Infos|Infos to that Topic: blog.loksado.com/batch-mengunci-folder […]

  6. … [Trackback]

    […] Find More on|Find More|Find More Informations here|Here you can find 25967 additional Informations|Informations to that Topic: blog.loksado.com/batch-mengunci-folder […]

  7. … [Trackback]

    […] Read More on|Read More|Find More Informations here|Here you can find 41082 more Informations|Informations to that Topic: blog.loksado.com/batch-mengunci-folder […]

  8. web togel says:

    … [Trackback]

    […] Find More here|Find More|Find More Informations here|There you can find 49353 more Informations|Infos to that Topic: blog.loksado.com/batch-mengunci-folder […]

  9. … [Trackback]

    […] Find More here|Find More|Find More Infos here|Here you will find 52059 additional Infos|Informations on that Topic: blog.loksado.com/batch-mengunci-folder […]

  10. … [Trackback]

    […] Find More on|Find More|Read More Informations here|Here you will find 2866 additional Informations|Informations to that Topic: blog.loksado.com/batch-mengunci-folder […]

Mari berdiskusi dengan santun...