@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