1) Press Windows button + R and type Notepad.
2) Copy and paste the following code into Notepad:
@echo off
color 1A
:start
echo Display System Date
echo.
echo Current date: %date%
ping localhost -n 2 >nul
cls
goto start
3) Select File > Saves as, assign a file name: time.bat. Make sure to save on your desktop or in any folder on your computer that you can easily find. In this case, the time.bat file is saved on the desktop.



