@echo off
REM %%VER NetWare 286 Drivers Installation Utility Program v2.0b
REM ******************************************************************
REM Updates EtherLink 16 network adapter drivers in a NW 286 system
REM Format: From the NETWARE subdirectory
REM > 286\update [target_drive:]
REM ******************************************************************
..\install\echoxy 16 10
..\install\echoxy 16 10 Updating NetWare 286 driver files on %1
..\install\echoxy 17 10
..\install\echoxy 18 10
..\install\echoxy 19 10
..\install\echoxy 20 10
set update=n
if not exist %1\Shgen-1\*.* goto ST1
if not exist %1\Shgen-1\3C507CD.lan goto ST01
copy %1\Shgen-1\3C507CD.lan %1\Shgen-1\*.old > nul
:ST01
if not exist %1\Shgen-1\S3C507.lan goto ST02
copy %1\Shgen-1\S3C507.lan %1\Shgen-1\*.old > nul
:ST02
copy 286\S3C507.lan %1\Shgen-1 > nul
..\install\echoxy 17 13 Updated EtherLink 16 .LAN file in directory %1\Shgen-1
set update=y
:ST1
if not exist %1\Brgen-1\*.* goto ST2
if not exist %1\Brgen-1\3C507.lan goto ST11
copy %1\Brgen-1\3C507.lan %1\Brgen-1\*.old > nul
:ST11
if not exist %1\Brgen-1\3C507A?.lan goto ST12
copy %1\Brgen-1\3C507A?.lan %1\Brgen-1\*.old > nul
:ST12
copy 286\3C507A?.lan %1\Brgen-1 > nul
..\install\echoxy 18 13 Updated EtherLink 16 .LAN file in directory %1\Brgen-1
set update=y
:ST2
if not exist %1\Auxgen\*.* goto ST3
if not exist %1\Auxgen\3C507.lan goto ST21
copy %1\Auxgen\3C507.lan %1\Auxgen\*.old > nul
:ST21
if not exist %1\Auxgen\3C507A?.lan goto ST22
copy %1\Auxgen\3C507A?.lan %1\Auxgen\*.old > nul
:ST22
copy 286\3C507A?.lan %1\Auxgen > nul
..\install\echoxy 19 13 Updated EtherLink 16 .LAN file in directory %1\Auxgen
set update=y
:ST3
if not exist %1\WSgen\*.* goto ST4
if not exist %1\WSgen\3C507CD.lan goto ST31
copy %1\WSgen\3C507CD.lan %1\WSgen\*.old > nul
:ST31
if not exist %1\WSgen\S3C507.lan goto ST32
copy %1\WSgen\S3C507.lan %1\WSgen\*.old > nul
:ST32
copy 286\S3C507.lan %1\WSgen > nul
..\install\echoxy 17 13 Updated EtherLink 16 .LAN file in directory %1\Wsgen
set update=y
:ST4
if not exist %1\Routegen\*.* goto ST5
if not exist %1\Routegen\3C507.lan goto ST41
copy %1\Routegen\3C507.lan %1\Routegen\*.old > nul
:ST41
if not exist %1\Routegen\3C507A?.lan goto ST42
copy %1\Routegen\3C507A?.lan %1\Routegen\*.old > nul
:ST42
copy 286\3C507A?.lan %1\Routegen > nul
..\install\echoxy 18 13 Updated EtherLink 16 .LAN file in directory %1\Routegen
set update=y
:ST5
if not exist %1\System-1\*.* goto ST6
if not exist %1\System-1\3C507.lan goto ST51
copy %1\System-1\3C507.lan %1\System-1\*.old > nul
:ST51
if not exist %1\System-1\3C507A?.lan goto ST52
copy %1\System-1\3C507A?.lan %1\System-1\*.old > nul
:ST52
copy 286\3C507A?.lan %1\System-1 > nul
..\install\echoxy 19 13 Updated EtherLink 16 .LAN file in directory %1\System-1
set update=y
:ST6
if %update% == n goto errmsg
if not exist %1\lan_drv_.507\*.* goto make507
copy %1\lan_drv_.507\*.obj %1\lan_drv_.507\*.old > nul
:contin
copy 286\*.obj %1\lan_drv_.507 > nul
..\install\echoxy 20 13 Updated EtherLink 16 .OBJ files in directory %1\LAN_DRV_.507
..\install\echoxy 22 13 Strike any key to continue.
..\install\reply
if errorlevel 28 goto done
if errorlevel 27 goto end
:DONE
..\install\echoxy 16 0 ║ ║ █ █
..\install\echoxy 17 0 ║ ║ █ █
..\install\echoxy 18 0 ║ ║ █ █
..\install\echoxy 19 0 ║ ║ █ █
..\install\echoxy 20 0 ║ ║ █ █
..\install\echoxy 21 0 ║ ║ █ █
..\install\echoxy 16 13
..\install\echoxy 17 13 The NetWare 286 EtherLink 16 drivers on %1
..\install\echoxy 18 13 have been updated. The older drivers have been copied
..\install\echoxy 19 13 to files with the extension ".old."
..\install\echoxy 20 13
..\install\echoxy 22 13 Strike any key to return to the NetWare menu.
..\install\reply
:end
netware
:errmsg
..\install\echoxy 17 13 *** Error: No Files Were Updated! ***
..\install\echoxy 18 13 Make sure that you have entered the correct drive
..\install\echoxy 19 13 letter and that you have access rights to the files.
..\install\echoxy 22 13 Strike any key to return to the NetWare menu.
..\install\reply
netware
:make507
md %1\lan_drv_.507 > nul
goto contin