Rabu, 02 Oktober 2013

LATIHAN MEMBUAT PROGRAM MENU UTAMA

PRORAM MENU UTAMA



1. Membuat script 
       @echo off
       color 5a
       cls
       :start
       echo --------------------------
       echo ;   Welcome to program   ;
       echo --------------------------
       echo ;1. Buka Packet Tracer   ;
       echo ;2. Buka Game Zombie     ;
       echo ;3. Buka Xampp           ;
       echo ;4. Buka Calculator      ;
       echo ;5. Buka TextPad         ;
       echo ;6. Selesai              ;
       echo.--------------------------
       echo.

       set /p pilihan=pilih yang akan dibuka:
       IF '%pilihan%' == '%pilihan%' GOTO Item_%pilihan%
       :Item_1
          start /MIN /D "C:\Program Files\Cisco Packet Tracer                  5.3.3\bin" PacketTracer5.exe
       GOTO Start
       :Item_2
          start /MIN /D "D:\games\Plants vs. Zombies 2\Plants vs.              Zombies 2" PlantsVsZombies.exe
       GOTO Start
       :Item_3
          start /MIN /D "C:\xampp" xampp-control.exe
       GOTO Start
       :Item_4
          start /MIN /D "C:\Windows\System32" calc.exe
       GOTO Start
       :Item_5
          start /MIN /D"C:\Program Files\TextPad 7" TextPad.exe
       GOTO Start
       :Item_6
       exit
       echo.
       Pause
       goto start


2. Buka Command Promp, lalu ketik :
   C:\Users\dewi>cd/
   C:\>d:
   D:\>Dewi.bat (nama file yang disimpan) <ENTER>
       
                             Gambar1

   Hasilnya :


                              Gambar2

    Tampilan pilihan no1:

                              Gambar3

    Tampilan pilihan no2:
                             Gambar4

    Tampilan pilihan no3:
                            Gambar5

    Tampilan pilihan no4:
                            Gambar6

    Tampilan pilihan no5:
                             Gambar7

Tidak ada komentar:

Posting Komentar