home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / INCVAR10.ZIP / INCVAR.LZH / INCVAR.DOC < prev   
Text File  |  1993-11-27  |  2KB  |  64 lines

  1. File: INCVAR.DOC             Version 1.00                 1992.06.14 Sunday
  2.                                                           1993.11.27
  3. Used to increment an environment variable. The number of characters in the
  4. variable is invariant - you start with one and there is not increase to two.
  5. Up to 150 characters is allowed. A series over time may be:
  6. 5,6,7,8,9,0,1 for a single number, ax,ay,az,ba, etc for a length 
  7. of 2 characters, or 69y, 69z, 70a for 3 characters, etc.
  8.  
  9. INCVAR reads the environment variable "INCVAR" and increments it. Numbers, 
  10. lower case and upper case can be mixed. It writes a file INCVARGC.BAT 
  11. which may be CALLed to set the new value in the environment. A default of 
  12. "aa" is provided if the variable doesn't exist initially. Because 
  13. setting the incremented variable is done in a batch file, operation may be
  14. made conditional.
  15.  
  16. This program may be used to make progressive backups of source codes during 
  17. the compiling process. See the following batch file fragment:
  18.  
  19. rem CM.BAT
  20. m:
  21. incvar
  22. call incvargc
  23. copy %1.mod %1.%incvar%
  24.    etc   etc
  25.  
  26.  
  27. Written by Geoff Cutter, Melbourne.
  28.  
  29.  
  30. ________________________________________________________________________
  31. Additional note: 1993.01.10 Sunday
  32.  
  33. Graham Paul (MPCUG) was interested in creating multiple files of the same sort.
  34. INCVAR may be used in a manner similar to this:
  35.  
  36.      :File GP.BAT                Geoff Cutter              1993.01.10 Sunday
  37.      REM Demonstration of the use of INCVAR to make some files
  38.      SET INCVAR=000
  39.      C:
  40.      CD\
  41.      :START
  42.      INCVAR
  43.      CALL INCVARGC
  44.      COPY CONFIG.SYS CON%INCVAR%.TMP
  45.      IF %INCVAR%==005 GOTO END
  46.      GOTO START
  47.      :END
  48. ________________________________________________________________________
  49.  
  50.  
  51.  
  52. DISCLAIMER
  53.  
  54. Fitness for purpose is determined by the user. The author is not liable 
  55. for any incidental, consequential, direct or indirect damages caused by 
  56. loss of data or any other reason. Whoever uses the program, whatever his
  57. age or mental capability, bears all risk as to the performance of the 
  58. software.
  59.  
  60. Geoff Cutter, Melbourne, Australia
  61.  
  62. END OF DOC - END OF DOC - END OF DOC - END OF DOC - END OF DOC - END OF DOC 
  63.  
  64.