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

  1. ECHO OFF
  2. CLS
  3. rem     This BAT file provides an example use of the configuration/
  4. rem     installation utility LLCONFIG.COM.
  5. rem
  6. rem           Title: User Provides Data File Name and Portion of Path
  7. rem     Description: Runs LLCONFIG.COM with a DOS parameter for data
  8. rem                  path selection and one for data file naming. Can
  9. rem                  therefore be used to select a departments directory
  10. rem                  and a persons name etc.
  11.  
  12. rem     Check to see user has provided a dept/dir name
  13.  
  14. if "%1"=="" goto error
  15.  
  16. rem     Check to see user has provided a file name
  17.  
  18. if "%2"=="" goto error
  19.  
  20. rem     They have provided a file name and directory name
  21. rem     perform installation
  22.  
  23. :INST
  24.  
  25. ECHO    ╔══════════════════════════════════════════════════════╗
  26. ECHO    ║     INSTALLING & CONFIGURING LANLOG's TSR LLOG.COM   ║
  27. ECHO    ╠══════════════════════════════════════════════════════╣
  28. ECHO    ║                                                      ║
  29. ECHO    ║       Installation will take only a few seconds.     ║
  30. ECHO    ║                                                      ║
  31. ECHO    ║ NOTE: Previously installed copies of LLOG.COM will   ║
  32. ECHO    ║       be erased - press CNTRL-C to terminate         ║
  33. ECHO    ║       installation, any other key to continue.       ║
  34. ECHO    ║                                                      ║
  35. ECHO    ║   {Cntrl-C} = terminate, any other key = continue    ║
  36. ECHO    ║                                                      ║
  37. ECHO    ╚══════════════════════════════════════════════════════╝
  38.  
  39. rem     get user response
  40.  
  41. PAUSE
  42.  
  43. rem     Run the LLCONFIG.COM file
  44.  
  45. LLCONFIG /PATH: C:\METER.DAT\%1 /NAME: %2
  46.  
  47. rem     To change the destination drive and path edit C:\METER.DAT
  48. rem     Note, this will create a Meter file only installation
  49. rem     use the /LOG and /MET command line options to override
  50. rem     this default.
  51.  
  52. goto QUIT
  53.  
  54. :ERROR
  55.  
  56. rem     user didn't provide a command line parameter for created data
  57. rem     file name or path portion
  58.  
  59. CLS
  60.  
  61. ECHO    ╔══════════════════════════════════════════════════════╗
  62. ECHO    ║                     SYNTAX ERROR                     ║
  63. ECHO    ╠══════════════════════════════════════════════════════╣
  64. ECHO    ║                                                      ║
  65. ECHO    ║ This BATCH file requires two parameters, the first   ║
  66. ECHO    ║ tells LLCONFIG which dir/dept to place data into the ║
  67. ECHO    ║ second what unique file name to give it.             ║
  68. ECHO    ║                                                      ║
  69. ECHO    ║ The correct syntax:                                  ║
  70. ECHO    ║                                                      ║
  71. ECHO    ║               CONFEG04 {path} {name}                 ║
  72. ECHO    ║                                                      ║
  73. ECHO    ║ Where {path} is any DOS valid 12 character string    ║
  74. ECHO    ║ and {name} is any DOS valid 8 character string.      ║
  75. ECHO    ║                                                      ║
  76. ECHO    ║ Example:                                             ║
  77. ECHO    ║                                                      ║
  78. ECHO    ║             CONFEG03 ACCOUNTS GEORGE                 ║
  79. ECHO    ║                                                      ║
  80. ECHO    ╚══════════════════════════════════════════════════════╝
  81.  
  82. rem     The End
  83.  
  84. :QUIT
  85.  
  86. ECHO ON
  87.