home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 21 PDrivers / 21-PDrivers.zip / 4047OD1.zip / update.bat < prev    next >
DOS Batch File  |  1994-05-10  |  4KB  |  152 lines

  1. echo off
  2. if .%1==. goto noarg
  3. goto got_arg
  4. :noarg
  5. rem #####No arguments given, display message and exit.
  6. echo
  7. echo This batch file updates 1-2-3 Release 2.3 and
  8. echo 1-2-3 Release 2.4 with new Wysiwyg extended
  9. echo printer drivers.  To update your copy of 1-2-3
  10. echo insert the diskette into a diskette drive,
  11. echo make that drive the current drive, and
  12. echo type UPDATE C:\123r24
  13. echo where C:\123r24 is the disk and directory path
  14. echo for 1-2-3 and the INSTALL program.
  15. echo Your disk and directory path may be
  16. echo different so after returning to DOS,
  17. echo make sure you confirm the disk and directory
  18. echo path before attempting to update 1-2-3 again.
  19. echo
  20. echo For more information, view or print the L2README.1ST file.
  21. echo
  22. goto the_end
  23.  
  24. :got_arg
  25.  
  26. rem ###Check for 2.3 and/or 1-2-3 for Home
  27. if not exist %1\ins23.exe goto rel24
  28. echo
  29. home %1
  30. IF ERRORLEVEL 1 GOTO FORHOME
  31. sam23 %1
  32. IF ERRORLEVEL 1 GOTO SAMB23
  33. echo 1-2-3 Release 2.3 found in %1
  34. echo
  35. echo Any key to continue Update, Ctrl-Break to abort
  36. pause
  37. echo Updating Install program....
  38. echo
  39. pkunzjr -o ins24 %1\
  40. del %1\ins23.exe
  41. ren %1\ins24.exe ins23.exe
  42. echo Adding New Wysiwyg fonts....
  43. echo
  44. pkunzjr -o L2XIFL %1\WYSIWYG\
  45. echo Unpacking Release 2.3 drivers....
  46. echo
  47. pkunzjr -o upd23.zip
  48. echo
  49. echo 1-2-3 Update files have been installed.  To take advantage of the
  50. echo new printer drivers, you must now run the 1-2-3 Install program.
  51. echo
  52. goto Use_install
  53.  
  54. :FORHOME
  55. echo
  56. echo 1-2-3 for Home was found in %1
  57. echo
  58. GOTO wrong_version
  59.  
  60. :SAMB23
  61. rem ##This is a copy of 2.3 that was previously updated
  62. echo 1-2-3 Release 2.3 updated version found in %1
  63. echo
  64. echo Any key to continue Update, Ctrl-Break to abort
  65. pause
  66. echo Updating Install program....
  67. echo
  68. pkunzjr -o ins24 %1\
  69. del %1\ins23.exe
  70. ren %1\ins24.exe ins23.exe
  71. echo
  72. echo Adding New Wysiwyg fonts....
  73. echo
  74. pkunzjr -o L2XIFL %1\WYSIWYG\
  75. echo Unpacking Release 2.3 updated drivers....
  76. echo
  77. pkunzjr -o upd23.zip
  78. echo
  79. echo 1-2-3 Update files have been installed.  To take advantage of the
  80. echo new printer drivers, you must now run the 1-2-3 Install program.
  81. echo
  82. goto Use_install
  83.  
  84.  
  85. :rel24
  86.  
  87. rem ###Check for 2.4
  88. if not exist %1\ins24.exe goto wrong_version
  89. echo
  90. echo 1-2-3 Release 2.4 found in %1
  91. echo
  92. echo Any key to continue Update, Ctrl-Break to abort
  93. pause
  94. echo Updating Install program....
  95. echo
  96. del %1\ins24.exe
  97. pkunzjr -o ins24 %1\
  98. echo Adding New Wysiwyg fonts....
  99. echo
  100. pkunzjr -o L2XIFL %1\WYSIWYG\
  101. echo Unpacking Release 2.4 drivers....
  102. echo
  103. pkunzjr -o upd24.zip
  104. echo
  105. echo 1-2-3 Update files have been installed.  To take advantage of the
  106. echo new printer drivers, you must now run the 1-2-3 Install program.
  107. echo
  108.  
  109. :use_install
  110.  
  111. echo Now you must change to the %1 disk and directory
  112. echo and start the Install Program.  After you start Install
  113. echo you must go through through the following steps:
  114. echo
  115. echo - Change Selected Equipment -
  116. echo
  117. echo - Add new Drivers to Library - specify this diskette drive
  118. echo
  119. echo - Modify current Driver set -
  120. echo
  121. echo - Select drivers -  (re) select drivers for your printer
  122. echo
  123. echo - Save the Driver set -
  124. echo
  125. echo - Generate Fonts - ( Basic, Medium or Extended )
  126. echo
  127. echo - Exit Install -
  128. echo
  129. echo  For more information, view or print the L2README.1ST file.
  130. echo
  131. goto the_end
  132.  
  133. :wrong_version
  134. echo
  135. echo Lotus 1-2-3 Release 2.3 or 2.4
  136. echo was not found in %1
  137. echo
  138. echo Please verify that %1
  139. echo is the correct drive and path to your 1-2-3 files
  140. echo and also that the 1-2-3 INSTALL.EXE program is there.
  141. echo
  142. echo If the drive and path are correct, then your version of 1-2-3
  143. echo is not capable of using the new drivers.
  144. echo
  145. echo If you have 1-2-3 for Home, then you cannot use the
  146. echo new drivers.
  147. echo
  148. echo Call Lotus at 1-800-TRADEUP for upgrade information.
  149.  
  150. :the_end
  151.  
  152.