cara membuat menu file batch di free dos

  • 733 views
Uploaded on

bagaimana cara membuat menu di file batch

bagaimana cara membuat menu di file batch

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
733
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
21
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. MEMBUAT MENU DI BATCH FILE FREE DOS NAMA KELOMPOK : Mochsyaifuddin (15) Mochhairafi (19) Nasibsugiarto (20) 1/22/2014
  • 2. ALAT DAN BAHAN = - OS FREEDOS SATU LAPTOP LANGKAH-LANGKAH 1. INSTAL DULU OS FREEDOSNYA 2. KITA BUAT FILE MENU.BAT , DENGAN MENGETIKKAN SEPERTI DI BAWAH INI : C:> EDIT MENU.BAT 3. DALAM MENU TERSEBUT KITA ISIKAN SCRIPT MENU CONTOH SEPERTI DI BAWAH INI : @ECHO OFF :MENU CLS ECHO ======================= MENU MAKANAN =============================== ECHO --------------------------------------------------------------------------------------------------------------ECHO 1. GORENG ECHO 2. KRAWU ECHO 3. PECEL ECHO 4.QUIT ECHO -------------------------------------------------------------------------------------------------------------ECHO ------------------------------------------------------------------------------------------------------------ECHO ====================================================================== ECHO. SET /P INPUT=”PLEASE SELECT A NUMBER”: IF “%INPUT%” == “1” GOTO GORENG IF “%INPUT%” == “2” GOTO KRAWU IF “%INPUT%” == “3” GOTO PECEL IF “%INPUT%” == “4” GOTO EXIT ECHO INVALID PILIHAN: %INPUT% ECHO. PAUSE CLS GOTO MENU :GORENG CLS ECHO -----------------------------------------------------------------------------------------------------------------ECHO NASI GORENG CUKUP RP 5.0000 ECHO -----------------------------------------------------------------------------------------------------------------PAUSE GOTO MENU CLS Tugaskelompok menu file batch 1
  • 3. :KRAWU CLS ECHO -----------------------------------------------------------------------------------------------------------------ECHO MASAKAN KRAWU CUKUP RP 2500 ECHO -----------------------------------------------------------------------------------------------------------------ECHO. AUSE GOTO MENU CLS :PECEL CLS ECHO ----------------------------------------------------------------------------------------------------------------ECHO PECEL MAKANAN INDONESIA CUKUP RP 10.000 ECHO -----------------------------------------------------------------------------------------------------------------PAUSE GOTO MENU CLS :EXIT CLS ECHO ------------------- KUNJUNGAN ANDA ADALAH HARAPAN KAMI ---------------------------------ECHO -------------------------------- TERIMA KASIH ---------------------------------------------------------------ECHO -----------------------------------------------------------------------------------------------------------------PAUSE EXIT KETERANGAN : CTRL + S = UNTUK SAVE FILE ALT + X = UNTUK EXIT Contohgambarketikan script di free dos : Tugaskelompok menu file batch 2
  • 4. Tugaskelompok menu file batch 3
  • 5. 4. HABIS ITU UJI COBA DENGAN MENGETIKKAN C:> MENU HABIS ITU ENTER Makahasilnyaakansepertidibawah : tekannomer 1 untukmelihatharganasigoreng contohgambar.. Dan tekanlainnyajikaperlu. Tekan 4 untuk quit.. Sekian Terimakasigtanpa mu kami bukanapaapa… Tugaskelompok menu file batch 4