Create Clock in Your PC Using Batch File Script
You can make digital clock on your PC just using this simple batch file code. You can save this script in any folder and execute.
Below is the step-by-step guide to let you create your batch file.
Step 1: Open Notepad in your system.
Step 2: Copy the below code in Notepad:
@mode con cols=30 lines=7
echo Time: %time%
echo Date: %date%
ping -n 2 0.0.0.0>nul
Step 3: Save the Notepad file in any location you want and give any name like “Clock.bat“.
Now you can run the batch file and it will show the digital clock as below:
Note:- If you want to edit the batch file, then right-click on it and then click on Edit or you can open the batch file in Notepad and after editing you can save it.