home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
CENVID.ZIP
/
DOSTIME.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-04-11
|
400b
|
19 lines
@echo off
REM DosTime - CEnvi example program for showing the Dos system time
cenvi %0.bat
GOTO CENVI_EXIT
printf("Displaying DOS system time; press any key to end:\n")
while( !kbhit() ) {
reg.ah = 0x2C
interrupt(0x21,reg)
printf("\r%2d:%02d:%02d.%02d",reg.ch,reg.cl,reg.dh,reg.dl)
}
while( kbhit() ) getch() // flush keyboard buffer
printf("\n")
:CENVI_EXIT