This program writes a time entry to a log file whenever the PC is rebooted. Call this program from AUTOEXEC.BAT or from a Windows scheduled task.


***********************************************************
** Program: pclog.q                                      **
** Purpose: This program writes a time entry (day, date, **
**          and time) to text file PCLOG.                **
** Syntax.: quikcode pclog.q                             **
***********************************************************

  open ofa 'C:\PCLOG' textappend 32 * Open file in append mode
  move day  to ofa                  * Move day to output record
  move date to ofa11-20             * Move date to output record
  move time to ofa22-32             * Move time to output record
  write ofa                         * Write record to output file

Contents of file PCLOG after the PC was booted three times.
Saturday  08/14/1999 20:43:30:84
Sunday    08/15/1999 09:20:22:06
Monday    08/16/1999 08:00:31:22

Back to home Back to home