Professional Documents
Culture Documents
Dailydiary
Dailydiary
:menu
:: the contents below will be shown when the file was opened or more like the UI of
this program
cls
color b0
::to change the color
echo Daily Diary
echo.
:: echo with a dot is used when you want to display a blank space or black line
echo Select one of the following:
echo --------------------------------
echo ---- 1. Add Entry
echo ---- 2. View Entries
echo ---- 3. Exit
echo --------------------------------
:: the echo functions will display the text beside it
echo.
set /p "choice=Please type the number of your corresponding choice (1, 2, or 3): "
:: it allows the user to input a value and that value will be assigned to a
specific variable, which is the variable 'choice'
:: contents and commands that will be shown and executed if the user inputs number
2
:view_entries
cls
echo Diary Entries:
type diary.txt
:: automatically displays on the screen the entries that the user typed
pause>nul
goto menu