How to Make a Command Prompt Clock
In this post, I have told you how to make a digital clock with the help of a command prompt, that too from notepad. With the help of Notepad, you can make a colorful Digital Clock in Command Prompt. And you can change the color of the clock as you want.
You can make a digital clock very easily, all you have to do is follow the given steps.
Step 1 - In step number one, you have to copy the 13-line code given below and open a notepad and paste the code.
@echo off
Title Digital clock
@mode con cols=25 lines=5
color 00
:main
cls
echo.
echo Time:%time%
echo.
echo Date: %date%
echo.
ping -n 2 0.0.0.0>nul
goto main
Step 2 - You have to click on the file option on a notepad and click on as save, keep in mind that you must have a .bat extension while sharing. Example - digitalClock.bat
Step 3 - Now your digital clock is ready, now you have to open it, as soon as you open it, you will see your digital clock will be open.
Step 4 - Now your digital clock will be open successfully now you can also change the color line space of your digital clock. You will get to see many codes below to change the color of the digital clock, you just have to go to that notepad and change it in the option of colors, you have to copy and paste the code of the color you want to set.
color 00 ( Change Number - Change Color )
Colors are coded as two hexadecimal digits. Color 00 means black.
- 00-Black
- 01-Navy
- 02-Green
- 03-Teal
- 04-Maroon
- 05-Purplr
- 06-Olive
- 07-Silver
- 08-Grey
- 09-Blue
- 0A-lime
- 0B-Aqua
- 0C-Red
- 0D- Fuchsia
- 0E-Yellow
- 0F-White
Step 5 - Similarly, you can make your digital clock more or less in length and width, to do that you have to open a notepad, on opening you will get to see all the codes, in the court, you will show the option of columns lines, in that option you will get You to have to type the number you want to increase the width in that column and line.
@mode con cols=25 lines=5
Change Number Then Change columns and Lines.
Similarly, you can make a digital clock with the help of a notepad, friends, hope you liked this post very much, if you have any doubts or ask any questions, then you can comment to us in the comment box.