Clock
Posted: 20 Oct 2013 04:17
Hello guys, just a little point out here since I constantly get asked how to make a clock or a mechanism that shows you the time and/or date. The following codes are examples:
As you can see, Time and date variables are already existent, so there is no need to create variables or make huge lines of code to display time and date. Using the preset variables uses less time, and is very VERY simple to use!
Hope this helps!
.Batch Artist.
Code: Select all
@ECHO off
ECHO The time is %time%
ECHO The date is %date%
Code: Select all
@ECHO off
ECHO %time% %date%
As you can see, Time and date variables are already existent, so there is no need to create variables or make huge lines of code to display time and date. Using the preset variables uses less time, and is very VERY simple to use!
Hope this helps!
.Batch Artist.