home *** CD-ROM | disk | FTP | other *** search
/ DOS Wares / doswares.zip / doswares / DATABASE / BLINK3 / BLI310.ZIP / UPDATE.BAT < prev   
Encoding:
DOS Batch File  |  1994-12-07  |  2.7 KB  |  83 lines

  1. @echo off
  2. echo.
  3. echo               English Blinker 3.01 to Blinker 3.1 update
  4. echo               ------------------------------------------
  5. echo.
  6. echo This process requires this file UPDATE.BAT, the archive file BLI310EN.EXE
  7. echo and approximately 1.5 MB of available disk space on the current drive.
  8. echo.
  9. if '%1' == '' goto help
  10. if exist %1\blinker.exe goto upd010
  11. echo File %1\BLINKER.EXE does not exist - this file is REQUIRED for
  12. echo this update to succeed.
  13. echo.
  14. goto fail
  15. :upd010
  16. if exist %1\blinker.ng goto upd020
  17. echo File %1\BLINKER.NG does not exist so a new BLINKER.NG will
  18. echo NOT be created.
  19. echo 
  20. :upd020
  21. if exist bli310en.exe goto upd030
  22. echo File BLI310EN.EXE does not exist - it should be in the current directory.
  23. echo.
  24. goto fail
  25. :upd030
  26. echo About to create updated files
  27. echo.
  28. pause
  29. if '%1' == '.' goto upd040
  30. copy %1\blinker.exe
  31. copy %1\blinker.ng
  32. :upd040
  33. if exist 3rdparty.txt del 3rdparty.txt
  34. bli310en
  35. blibld
  36. echo.
  37. patch bli310en
  38. echo.
  39. if errorlevel 1 goto upd050
  40. echo                Blinker 3.1 has been successfully installed
  41. echo                -------------------------------------------
  42. echo.
  43. echo Be sure to update your LIB, PATH and OBJ environment settings to reflect
  44. echo the new path for Blinker 3.1.
  45. echo.
  46. echo If you wish to conserve disk space you may now delete the archive files
  47. echo BLI310EN.ZIP, BLI310EN.EXE, BLI310EN.RTP, BLIBLD.EXE and PATCH.EXE.
  48. echo.
  49. goto exit
  50. :upd050
  51. echo ***** The Blinker 3.1 update was NOT completed successfully *****
  52. echo.
  53. echo If the BLINKER.EXE has not been updated then please check that
  54. echo the path specified points to Blinker 3.01 as that is the only
  55. echo the version which can be updated to 3.1.
  56. echo.
  57. echo If the BLINKER.EXE was updated successfully then only the BLINKER.NG
  58. echo file will not have been updated and Blinker 3.1 will still execute
  59. echo correctly. If you wish to update BLINKER.NG please ensure that the
  60. echo path specified points to the Blinker 3.01 BLINKER.NG.
  61. echo 
  62. goto exit
  63. :help
  64. echo Syntax :
  65. echo            Current directory with the 3.1 files UPDATE.BAT and BLI310.EXE
  66. echo.
  67. echo            UPDATE d:\path
  68. echo.
  69. echo            Where d:   is the drive
  70. echo                  path is the path where BLINKER.EXE and BLINKER.NG from
  71. echo                                   Blinker 3.01 ONLY are installed.
  72. echo.
  73. echo Examples : UPDATE .          Update the current directory containing
  74. echo                              Blinker 3.01 to Blinker 3.1.
  75. echo.
  76. echo            UPDATE C:\B301    Update the current directory to Blinker
  77. echo                              3.1 with Blinker 3.01 in C:\B301.
  78. echo 
  79. goto exit
  80. :fail
  81. echo ***** The Blinker 3.1 update was NOT completed successfully *****
  82. :exit
  83.