home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 197 / DOS5BAT.ZIP / RUNLOG.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-11-03  |  1.3 KB  |  33 lines

  1. @ECHO OFF
  2. REM This is RUNLOG.BAT
  3. REM
  4. REM RUNLOG.BAT lets you log the time you spend at the keyboard. To run it,
  5. REM you must enter four things on the command line: 1) The name of the batch
  6. REM file (RUNLOG.BAT), 2) The name of the program you want to run, 3) The
  7. REM data file for that program, and 4) Up to seven words of memo notes about
  8. REM it. For example, to run WordStar, work on JONES91.TAX, and log the note
  9. REM "Jones's 1991 taxes," you'd type.
  10. REM
  11. IF EXIST PERSONAL.LOG GOTO START
  12. REM > PERSONAL.LOG
  13. :START
  14. IF %1!==! GOTO OOPS
  15. ECHO ------------- >> PERSONAL.LOG
  16. ECHO | MORE | DATE | FIND "Cur" >> PERSONAL.LOG
  17. ECHO | MORE | TIME | FIND "Cur" >> PERSONAL.LOG
  18. ECHO Ran %1 using data file %2  >> PERSONAL.LOG
  19. ECHO Notes: %3 %4 %5 %6 %7 %8 %9 >> PERSONAL.LOG
  20. %1 %2
  21. ECHO | MORE | TIME | FIND "Cur" >> PERSONAL.LOG
  22. ECHO ------------ >> PERSONAL.LOG
  23. ECHO PERSONAL.LOG updated . . .
  24. GOTO END
  25. :OOPS
  26. ECHO Enter three things after %0, all on the same line:
  27. ECHO 1. The name of the program you want to run
  28. ECHO 2. Then the data file for that program
  29. ECHO 3. Then up to seven words of memo notes about it
  30. ECHO e.g.: To run WordStar, work on JONES91.TAX,
  31. ECHO and add a "Jones's 1991 taxes" log entry,
  32. ECHO enter: %0 WS JONES91.TAX Jones's 1991 taxes
  33. :END