home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR21 / LANLOG11.ZIP / REPTEG04.BAT < prev    next >
DOS Batch File  |  1993-08-01  |  4KB  |  109 lines

  1. ECHO OFF
  2. CLS
  3. rem     This BAT file provides an example use of LANLOG's report
  4. rem     generation utility LLREPORT.COM.
  5. rem
  6. rem           Title: Concatenate Meter reports into single DOS file
  7. rem     Description: Runs LLREPORT.COM to create report of meter files in
  8. rem                  the current directory and add them to a file
  9. rem                  containing other similar reports.
  10.  
  11. :START
  12.  
  13. ECHO    ╔══════════════════════════════════════════════════════╗
  14. ECHO    ║         ADDING METER REPORTS TO C:\ALL.REP           ║
  15. ECHO    ╠══════════════════════════════════════════════════════╣
  16. ECHO    ║                                                      ║
  17. ECHO    ║ This batch file reports on any meter files found in  ║
  18. ECHO    ║ the current directory and concatenates them to a     ║
  19. ECHO    ║ file in the root directory - C:\ALL.REP.             ║
  20. ECHO    ║                                                      ║
  21. ECHO    ╚══════════════════════════════════════════════════════╝
  22.  
  23. rem     check for a total file delete if neccessary.
  24.  
  25. if exist DONE.MSG goto TELDONE
  26.  
  27. :REPT
  28.  
  29. ECHO    This directory already done! > DONE.MSG
  30.  
  31. rem     Put the current directory into report file
  32.  
  33. ECHO . >> C:\ALL.REP
  34. ECHO .  Meter file reports from the directory: >> C:\ALL.REP
  35. ECHO . >> C:\ALL.REP
  36. CD >> C:\ALL.REP
  37. ECHO . >> C:\ALL.REP
  38.  
  39. rem     Run the LLREPORT.COM to produce report to C:\ALL.REP
  40.  
  41. ECHO .
  42. ECHO .  Generating a report of all meter files to file:
  43. ECHO .
  44. ECHO .                  C:\ALL.REP
  45. ECHO .
  46. ECHO .  Please be patient.....
  47.  
  48. LLREPORT *.MET >> C:\ALL.REP
  49.  
  50. rem     Note: this command presumes a copy of LLREPORT is present
  51. rem     in the current directory or that it can be found in your PATH
  52.  
  53. goto QUIT
  54.  
  55. :TELDONE
  56.  
  57. CLS
  58.  
  59. ECHO    ╔══════════════════════════════════════════════════════╗
  60. ECHO    ║                       WARNING!                       ║
  61. ECHO    ╠══════════════════════════════════════════════════════╣
  62. ECHO    ║                                                      ║
  63. ECHO    ║ This directory's meter files have already been       ║
  64. ECHO    ║ included in the C:\ALL.REP file.                     ║
  65. ECHO    ║                                                      ║
  66. ECHO    ║ If you wish to add them again or have created a new  ║
  67. ECHO    ║ C:\ALL.REP delete the file:                          ║
  68. ECHO    ║                                                      ║
  69. ECHO    ║                       DONE.MSG                       ║
  70. ECHO    ║                                                      ║
  71. ECHO    ║ in this directory.                                   ║
  72. ECHO    ║                                                      ║
  73. ECHO    ╚══════════════════════════════════════════════════════╝
  74.  
  75. goto QUIT
  76.  
  77. :ERROR
  78.  
  79. rem     user didn't provide a command line parameter for created data
  80. rem     file name.
  81.  
  82. CLS
  83.  
  84. ECHO    ╔══════════════════════════════════════════════════════╗
  85. ECHO    ║                     SYNTAX ERROR                     ║
  86. ECHO    ╠══════════════════════════════════════════════════════╣
  87. ECHO    ║                                                      ║
  88. ECHO    ║ This BATCH file expects two parameters, the first is ║
  89. ECHO    ║ a file name for the meter file report, the second a  ║
  90. ECHO    ║ file name for the LANLOG.TOT file report.            ║
  91. ECHO    ║                                                      ║
  92. ECHO    ║ The correct syntax:                                  ║
  93. ECHO    ║                                                      ║
  94. ECHO    ║               REPTEG03 {name1} {name2}               ║
  95. ECHO    ║                                                      ║
  96. ECHO    ║ where {nameX} are any valid DOS path.                ║
  97. ECHO    ║                                                      ║
  98. ECHO    ║ Example:                                             ║
  99. ECHO    ║                                                      ║
  100. ECHO    ║           REPTEG03 ACCOUNTS.IND ACCOUNTS.ALL         ║
  101. ECHO    ║                                                      ║
  102. ECHO    ╚══════════════════════════════════════════════════════╝
  103.  
  104. rem     The End
  105.  
  106. :QUIT
  107.  
  108. ECHO ON
  109.