home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT202.ZIP / OLDVER.DOC < prev    next >
Text File  |  1991-08-28  |  3KB  |  73 lines

  1. OLDVER 1.65 (C) 1991 Solaris Systems, All Rights Reserved.
  2. Written by David M. Balmer, Jr.
  3.  
  4. OVERVIEW
  5. --------
  6.  
  7. Have you ever made permanent changes to a document or file that you have
  8. regretted?  Unless you make system backups several times a day, you can get
  9. into this pickle very frequently.  This utility allows you to maintain the
  10. last nine versions of a given file easily and quickly.  It is not meant as
  11. a replacement for complete system backups, but a geared for "short-term"
  12. storage of old versions of a file.
  13.  
  14. For example:  Say you are working on a file called "MYPROG.BAS".  You are
  15. about to make changes.  If you perform the following statement:
  16.  
  17.     OLDVER myprog.bas
  18.  
  19. you will always be able to backtrack your changes.  It works the same way
  20. as most text editors create ".BAK" files.
  21.  
  22. If you keep frequent backups, you will always be able to recall any old
  23. version for comparison.
  24.  
  25. USAGE
  26. -----
  27.  
  28. Syntax: OLDVER filename [bkext]
  29.  
  30. Where:
  31.     filename ... The master file to maintain
  32.     [bkext] .... An optional parameter that allows you to use a different
  33.                  extension for the backup files.
  34.  
  35. TECHNICAL
  36. ---------
  37.  
  38. This utility supports wildcards (?,*) and it uses standard output (i.e. the
  39. output can be redirected to another file, a printer or any device as in any
  40. standard DOS command).  OLDVER confirms that either the time, date or size
  41. of a program has changed from the most recent version before running the
  42. maintenance process.  If any duplicates are found, the oldest is removed.
  43. If any backup files are lost or deleted, OLDVER will fill in any gaps in the
  44. sequence as necessary.  All files are stored with the numbers 1-9 at the end
  45. of the extension.  For Example:
  46.  
  47. MYPROG.BAS      THISPROG.C
  48. MYPROG.BA1      THISPROG.C1
  49. MYPROG.BA2      THISPROG.C2
  50.     :               :
  51. MYPROG.BA9      THISPROG.C9
  52.  
  53. This system retains most of the readability of the file names.  However, in
  54. some examples, the normal backup extensions of two types of files conflict.
  55. If you have two files "MYPROG.BAS" and "MYPROG.BAT" and run OLDVER on each,
  56. you will have serious backup conflicts as the backup extensions for both are
  57. ".BA1".  This problem only occurs if the filenames are also the same.  To
  58. avoid this problem you can specify a backup extension for one of the files to
  59. be something other than ".BA?".
  60.  
  61. You can maintain old versions of a file type in a given directory by using
  62. wildcards.  For Example:
  63.  
  64.     OLDVER *.BAS
  65.  
  66. will check and maintain all files that end in ".BAS".  You can use any and
  67. all wildcard combinations that DOS allows.  WARNING: DO NOT USE the "*.*"
  68. wildcard or any wildcard in the extension position ("files.*").  If you do,
  69. OLDVER will make backups of the backup files it finds, too!  A backup file
  70. is just like any other file.
  71.  
  72.  
  73.