How to Make Your Own Clock in Batch

by Prostyle4444 in Circuits > Software

22192 Views, 8 Favorites, 0 Comments

How to Make Your Own Clock in Batch

images (2).jpg
Batch is nothing but programming using Command prompt. Now we are going to use the %date% and %time code for date and time and some graphic code to gives our project a nice look.

How to Make Your Own Clock in Batch

images (1).jpg



Now we start making our project by opening Accessories-> Notepad

or

go to Command prompt and type edit 

How to Make Your Own Clock in Batch

Now type the following code:

@echo off
setlocal delayexpansion
cls
@mode con cols=35 lines=7
title %username%`s watch
:time    
echo.      ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo.      ³     %time%³
echo.      ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
echo.      ³      %date% ³  
echo.      ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
ping -n 2 0.0.0.0 >nul
cls
goto :time

How to Make Your Own Clock in Batch

Now save it as whatever you want.bat and then run it.


CONGRATULATIONS


Now you have made your own clock in batch


 

Downloads