Live Clock in Batch/CMD

by MihaiPopa9 in Design > Software

15 Views, 0 Favorites, 0 Comments

Live Clock in Batch/CMD

Untitled.png

How to create a live clock! Just in Windows Batch

Supplies

Any Windows OS that has CMD

Work for code

Code

Just code:


@echo off

:liveclock

title Live Clock

color 0A

cls

echo Date: %date%, time: %time%

ping /n 2 localhost >nul

goto liveclock


I have the source code ready for download!

Just click on Live Clock Source Code.txt file to download!

Save

Save as Live Clock.bat

Or you can download the source code and rename to Live Clock Source Code.bat

Execute

Untitled.png

Double-click the file to execute

It shows the date and time forever utill I exit!

Done

Done!! I created a live clock in Windows Batch!!!