home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
clk251.zip
/
CLKTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-05-01
|
785b
|
41 lines
echo off
cls
rem These are some random clock options. (Requires file RAND.EXE --
rem also part of STEENBURGH's STUFF)
rand 7
if errorlevel 7 goto SEVEN
if errorlevel 6 goto SIX
if errorlevel 5 goto FIVE
if errorlevel 4 goto FOUR
if errorlevel 3 goto THREE
if errorlevel 2 goto TWO
:ONE
rem "Standard" clock display -- no options
CLK
goto end
:TWO
rem Military time
CLK /T
goto end
:THREE
rem Centered output
CLK /D /C
goto end
:FOUR
rem Color output
CLK /T /W 79
goto end
:FIVE
rem Positioned at specific screen location
CLK /R20 /C "Week of the year: %%U. Day of the year: %%j." 159
goto end
:SIX
rem A custom format
CLK "The time is now %%X. Today is %%A."
goto end
:SEVEN
rem Another custom format
CLK "Today is %%A, %%B %%d, %%Y."
:end