home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BATUTL / BAT204C.ZIP / LOGIT.BAT < prev    next >
Encoding:
DOS Batch File  |  1985-12-12  |  1.2 KB  |  35 lines

  1.  
  2. bat * Log name and application into a LOG file using EBL
  3. bat *
  4. bat * This sample file creates a LOG.T file containing an entry for
  5. bat * each action a person does. Each entry in the log file looks like:
  6. bat *
  7. bat *   "TIME - NAME - APPLICATION"
  8. bat *
  9. bat * The application can come from a menu, and the user from an initial
  10. bat * "Please enter your ID" request. The time is automatically derived
  11. bat * by using the system TIME command. By doing a "call -logit" anywhere
  12. bat * within your EBL file, these three things will be appended to the
  13. bat * end of the current log file.
  14. bat *
  15. bat     %N = Betsy              |*Name of user.
  16. bat     %A = wordstar           |*Application the person is using.
  17. bat     call -logit
  18. bat     type %N's actions have been saved in a log called "LOG.T"
  19. bat     exit
  20.  
  21. bat -logit
  22. bat     stack
  23. time
  24. bat     readscrn
  25. bat     readscrn                |* read back time from system command.
  26. bat     readscrn
  27. bat     readscrn %i %i %i %i    |* in time cmd, time is on 4rd line 4th word.
  28. bat     stack %i - %n - %a      |* prepare the items for the CON: device below
  29. bat     begstack                |* CON: must terminate with F6 key here.
  30. \00\40
  31. end
  32. copy log.t+con: log.t
  33. bat     return
  34.  
  35.