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:
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
: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>







Tidak ada komentar:
Posting Komentar