home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_47 / RUNSINCE.ZIP / RUNSINCE.TXT < prev   
Text File  |  1992-10-24  |  4KB  |  137 lines

  1. RunSince Documentation
  2. 22 October 1992
  3.  
  4.  
  5. Purpose
  6.  
  7.  
  8. If you reboot your machine to use different configurations (or for
  9. any other reason) RunSince can make the booting process faster by
  10. allowing you to specify how often to run certain programs.  
  11.  
  12.  
  13.  
  14. Usage
  15.  
  16.  
  17. RunSince was designed to allow your existing command lines to be
  18. adapted easily.  For example:
  19.  
  20.  
  21. Example autoexec.bat excerpt
  22.  
  23. ...
  24.  
  25. @echo off
  26. c:\cpav\bootsafe c: d:
  27. c:\cpav\cpav c: /s /p /a
  28. c:\nu\ndd c: d: /quick 
  29. c:\nu\speedisk c: d: /ff /b 
  30.  
  31. ...
  32.  
  33.  
  34. With this autoexec.bat file one could turn the machine on in the
  35. morning and come back after lunch.  I was faced with this situation
  36. and my solution was RunSince. 
  37.  
  38. I did not want to have yet-another-tsr (ala cron) that did these
  39. rather important tasks when appropriate nor did I want to complicate
  40. the situation by adding copious IF statements and other kludges to
  41. the autoexec.bat file, and I did not want to have to alter the
  42. command lines (much).  The net result is shown below.
  43.  
  44.  
  45. 'RunSince'd autoexec.bat excerpt
  46.  
  47. ...
  48.  
  49. @echo off
  50. runsince c:\cpav\bootsafe c: d:        /1 day
  51. runsince c:\cpav\cpav c: /s /p /a    /10 days
  52. runsince c:\nu\ndd c: d: /quick     /4 hours
  53. runsince c:\nu\speedisk c: d: /ff /b    /5 days
  54.  
  55. ...
  56.  
  57.  
  58. Now bootsafe runs once a day, cpav runs every 10 days, ndd runs every
  59. 4 hours and speedisk runs every 5 days no matter how many times I
  60. reboot.  This passes for nirvana.
  61.  
  62. Time units supported are the same units most of us use every day:
  63. d[ays] h[ours] m[inutes] s[econds] (the stuff between brackets is not
  64. required though allowed).  No support for star-dates although I must
  65. admit I had considered it. However no standard for star-dates exists
  66. and rather than invent the de-facto standard, I opted to let
  67. technology stand still.
  68.  
  69.  
  70. 'Command'.RUN
  71.  
  72.  
  73. Runsince creates a file with the base-name of the executable with the
  74. extension of '.run' (ie: the basename of 'command.com' is 'command',
  75. the resultant file name would ne 'command.run')  on either a) the
  76. default disk in the current directory if no drive\path is specified
  77. on the command or b) the drive\path specified on the command line.
  78.  
  79. The '.RUN' file contains three things, a string representing a time_t
  80. value of the execution time, a string description (ctime format) of
  81. that time, and the command line used at the time of execution.
  82.  
  83. One may delete these files if one wishes the values to be reset.
  84.  
  85.  
  86. Online Help
  87.  
  88. For a somewhat terse explaination of the above, type 'runsince help'
  89. and the following will jog your memory.
  90.  
  91.  
  92. RunSince 'online' help
  93. ...
  94.  
  95.  
  96. usage: runsince [d:][path]program [args...] /n [days|hours|minutes|SECONDS]
  97. example: 'runsince c:\virus\viruscan c: d: /all /fix /5 days'
  98.  
  99. The '/n [days|...]' must follow all program arguments.
  100. No intervening spaces are allowed between '/' and 'n'.
  101. The default time interval is seconds. Abbreviations such as
  102. 'min' or 'sec' are supported.  Maximum of 20 args to 'program'.
  103.  
  104. A file will be created in the either the same drive/directory
  105. specifed for the 'program' argument if a '[d:]' and/or '[path]'
  106. are specified, or in the current directory on the default drive if
  107. not specified, that contains a time_t value, a string description
  108. (ctime format) and the command line used at the time of last
  109. invocation of 'runsince' with this 'program' as an argument.
  110.  
  111. example: above, a file is created in 'c:\virus'
  112. with the name 'viruscan.run' that contains:
  113.  
  114. 704092095
  115. Last run on Fri Apr 24 00:08:15 1992
  116. Command line 'c:\virus\viruscan c: d: /all /fix'
  117.  
  118. ...
  119.  
  120.  
  121. ShareWare
  122.  
  123.  
  124. Admittedly I created this for my own use, but if you find this useful
  125. please be fair.  I removed all annoyances as a courtesy.  
  126.  
  127.  
  128. Donations of $5 appreciated to:
  129.  
  130. Terrance A. Davis
  131. TDS Inc.
  132. Suite 218
  133. 1540 Thomas Lake Pointe Road
  134. Eagan MN 55122
  135. USA
  136.  
  137.