Mengunci Folder dengan Batch

Hai teman-teman, jangan lupa subscribe Channel Youtube saya.
Subscribe tidak dipungut bayaran, mari dukung saya dengan klik tombol subscribe.


Ngobrol bareng seputar ngoprek mari bergabung di grup "Android TV dan STB".
Terakhir diupdate pada 10/02/2020 oleh Wira Loksado

Batch adalah kumpulan perintah-perintah DOS atau 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!

Was this helpful?

0 / 0


DMCA.com Protection Status
Artikel ini dilidungi oleh DMCA Takedown Services & Website Content Protection. Dilarang Copy-Paste.
Yang mau ngajakin ngopi silahkan klik

Hai teman-teman, jangan lupa subscribe Channel Youtube saya.
Subscribe tidak dipungut bayaran, mari dukung saya dengan klik tombol subscribe.


Ngobrol bareng seputar ngoprek mari bergabung di grup "Android TV dan STB".

Like Facebook Wira Loksado dengan menekan tombol "Suka" di bawah ini agar tetap update informasi terbaru:

Mari Berdiskusi

cosmetic dentistry cosmetic dentistry in West Palm Beach FL

cosmetic dentistry cosmetic dentistry in West Palm Beach FL

… [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 […]

Bdsm

Bdsm

… [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 […]

salary calculator

salary calculator

… [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 […]

Boliden

Boliden

… [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 […]

immigrazione

immigrazione

… [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 […]

Idle Heroes Cheats

Idle Heroes Cheats

… [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 […]

SCR888 Casino

SCR888 Casino

… [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 […]

web togel

web togel

… [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 […]

Get More Information

Get More Information

… [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 […]

best Atlanta schools

best Atlanta schools

… [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 […]

must watch

must watch

… [Trackback]

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

hemp oil

hemp oil

… [Trackback]

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

dog food advisor best dog foods

dog food advisor best dog foods

… [Trackback]

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

Software klinik

Software klinik

… [Trackback]

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

AwsAlkhazraji best engineer in diyala

AwsAlkhazraji best engineer in diyala

… [Trackback]

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

serviços informática

serviços informática

… [Trackback]

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

find out here

find out here

… [Trackback]

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

Chat via WA
1
Kontak WA hanya untuk donatur, tanya jawab silahkan gunakan kolom komentar pada akhir artikel.