home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
cenvid
/
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