Running the program
a. Open Notepad
b. Type the following syntax:
start chrome.exe www.facebook.com
c. Save the file with the name facebook.bat remember yes DOT BAT
d. If so, try your location to save the file, then open the facebook.bat. The result will open google chrome to open a facebook page
to build your program menu
a. Open Notepad
b. Type the following syntax:
@echo off
color 0a
:a
CLS
echo @@@@@@@@@@@@@@@@@@@@@@@
echo @@ Applications FAJARYUSUF.COM @@
echo @@ @@
echo @@ @@
echo @@ *-----------------------------------------------*@@
echo @@ * Select Your Choice * @@
echo @@ *-----------------------------------------------*@@
echo @@ * *@@
echo @@ * [1] Word *@@
echo @@ * [2] Excel *@@
echo @@ * [3] Power Point *@@
echo @@ * [4] Outlook *@@
echo @@ * [5] OneNote *@@
echo @@ * [6] Winamp *@@
echo @@ * [7] Paint *@@
echo @@ *-----------------------------------------------*@@
echo @@ @@
echo @@@@@@@@@@@@@@@@@@@@@@
echo.
set /p "pil=Insert Your Choice [1-7] : "
if %pil%==1 start winword
if %pil%==2 start excel
if %pil%==3 start powerpnt
if %pil%==4 start outlook
if %pil%==5 start onenote
if %pil%==6 start winamp
if %pil%==7 start mspaint
echo.
Pause
goto a
c. Save the text file with the name menuprogram.bat color 0a
:a
CLS
echo @@@@@@@@@@@@@@@@@@@@@@@
echo @@ Applications FAJARYUSUF.COM @@
echo @@ @@
echo @@ @@
echo @@ *-----------------------------------------------*@@
echo @@ * Select Your Choice * @@
echo @@ *-----------------------------------------------*@@
echo @@ * *@@
echo @@ * [1] Word *@@
echo @@ * [2] Excel *@@
echo @@ * [3] Power Point *@@
echo @@ * [4] Outlook *@@
echo @@ * [5] OneNote *@@
echo @@ * [6] Winamp *@@
echo @@ * [7] Paint *@@
echo @@ *-----------------------------------------------*@@
echo @@ @@
echo @@@@@@@@@@@@@@@@@@@@@@
echo.
set /p "pil=Insert Your Choice [1-7] : "
if %pil%==1 start winword
if %pil%==2 start excel
if %pil%==3 start powerpnt
if %pil%==4 start outlook
if %pil%==5 start onenote
if %pil%==6 start winamp
if %pil%==7 start mspaint
echo.
Pause
goto a
d. Run program
results if the run:
No display menu selection program, and if we input the numbers 1-7 on menu appropriate programs will be running and open input.
Make the program calculate
a. Open Notepad
b. Type the following syntax:
@echo off
title Learn to Count with Batch files
:awal
color 1b
ECHO ******************************************************
echo LEARN TO CALCULATE !
echo.
echo ******************************************************
echo.
set/p "b1=Input Number 1: "
set/p "b2=Input Number 2: "
echo.
echo [1] multiplication [2] add on [3] division [4] subtract it
set/p "pil=Pilih Action:"
if %pil%==''goto early
if %pil%==1 goto multiplication
if %pil%==2 goto add on
If %pil%==3 goto division
if %pil%==4 goto subtract it
echo.
:multiplication
set/a b=b1*b2
echo The results are = %b%
pause
goto early
:add on
set/a b=b1+b2
echo The results are = %b%
pause
goto early
:division
set/a b=b1/b2
echo The results are = %b%
pause
goto early
:subtract it
set/a b=b1-b2
echo The results are = %b%
pause
goto early
c. Save with name calculate.bat, then run the program
result will be like this:

If you have any questions please comment.
Do not forget to like and share.
Greeting the spirit of fajaryusuf . com . :)


Comments