home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Current Shareware 1994 January
/
SHAR194.ISO
/
networks
/
tcpv21cc.zip
/
TCPCSD.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-30
|
6KB
|
237 lines
@ECHO OFF
SET CSDTYPE=NETBIOS
SET CSDNO=NETBIOS 2.1.0.2
rem
rem Licensed Materials - Property of IBM
rem
rem (C) Copyright IBM Corp. 1991,1993. All rights reserved.
rem US Government Users Restricted Rights - Use, duplication or
rem disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
rem
rem
rem Written by: William T. Nelson
rem IBM Corporation
rem March 23, 1991
rem
rem Updated by: Lee Cole
rem IBM Corporation
rem Feb. 15, 1993
rem
set DSK=%1
if %1.==. SET DSK=A:\
if not exist %DSK%lpt1 goto slash
goto noslash
:slash
SET DSK=%DSK%\
if not exist %DSK%lpt1 goto help
:MOUNT
if not exist %DSK%READ.ME goto REQUEST
goto CONTINUE
:REQUEST
echo Please INSERT %CSDTYPE% CSD DISKETTE 1
pause
goto MOUNT
:noslash
if not exist %DSK%%CSDTYPE%CSD.DOC goto REQUEST
if exist %DSK%ASK.EXE goto CONTINUE
:help
cls
echo.
echo IBM TCP/IP for DOS Version 2.1
echo Corrective Service Diskette
echo Feburary 15, 1993
echo.
echo.
echo If you are running this program from anything other than diskette
echo drive A, you must enter:
echo.
echo %0 [drive letter][\path]
echo.
echo to override diskette drive A (i.e. %0 B).
echo.
echo.
echo The drive:\path %DSK% is invalid. Correct and try again.
goto QUIT
SET D=B
if "%D%"=="" goto QUIT
if EXIST %DSK%ASK.EXE SET D=
if "%D%"=="B" goto QUIT
:CONTINUE
%DSK%TCPCHKV %CSDNO%
if errorlevel 1 goto CHKBASE
echo.
echo.
echo.
echo.
echo This CSD has already been installed. If you install it again
echo you may backlevel your system.
echo Do you want the Corrective Service to be applied again? (Y, N or Q):
%DSK%ask Yy Nn Qq
if ERRORLEVEL 3 goto QUIT
if ERRORLEVEL 2 goto QUIT
:CHKBASE
if %tcpbase%.==. set tcpbase=%ETC%\..
echo.
echo.
echo.
echo.
echo Your TCPBASE environment variable is set to: %TCPBASE%
echo.
echo Do you want the Corrective Service to be applied to the TCP/IP for DOS
echo installed at %TCPBASE% (Y, N or Q):
%DSK%ask Yy Nn Qq
if ERRORLEVEL 3 goto QUIT
if ERRORLEVEL 2 goto BADBASE
if ERRORLEVEL 1 goto CHKDECOMP
echo.
echo.
echo ERROR: Your entry must be Y(es), N(o) or Q(uit)
echo.
goto CHKBASE
:BADBASE
echo.
echo.
echo The environment variable TCPBASE must be set inorder for this CSD to
echo install correctly. TCPBASE points to the base directory for the
echo TCP/IP for DOS product. Please set this variable by entering:
echo.
echo SET TCPBASE=[base directory]
echo.
echo For example:
echo.
echo SET TCPBASE=C:\TCPDOS
echo.
goto QUIT
:CHKDECOMP
IF EXIST %TCPBASE%\BIN\DECOMP.EXE goto DOCSDSECT
echo.
echo.
echo ERROR:
echo.
echo You must have installed the IBM TCP/IP for DOS Product in the directory
echo indicated by the environment variable TCPBASE. This BIN subdirectory
echo should contain the file DECOMP.EXE. If you have deleted this file, you
echo must reinstall the TCP/IP for DOS before this CSD can be applied.
echo.
goto QUIT
:DOCSDSECT
cls
:DOCSD
echo.
echo.
echo This CSD replaces several files within the %TCPBASE%\BIN and
echo %TCPBASE%\ETC directories. If you wish, a backup copy of each
echo original file will be saved under under a different name. The backup
echo file will be created by changing the last character in each file type
echo to an "@" (i.e. TELNET.EXE will be saved as TELNET.EX@).
echo.
echo Please note that only one backup of each file will be saved and if
echo you have any backup copies that you wish to retain, you must back these
echo files up by hand.
echo.
echo WARNING: To perform this backup, you must have at lease 1.7MB free
echo (1,700,000 bytes) on the disk drive that contains %TCPBASE%.
echo There is no error checking to verify if you have enough free
echo disk space so, YOU MUST ASSURE THAT YOU HAVE ENOUGH ROOM TO
echo BACKUP THE FILES.
echo.
echo Do you want the previous versions to be saved (Y, N or Q):
%DSK%PUSHD %TCPBASE%
if errorlevel 1 goto QUIT
%DSK%ask Yy Nn Qq
if ERRORLEVEL 3 goto QUIT
if ERRORLEVEL 2 goto REALLYDOCSD
if ERRORLEVEL 1 goto COPYFILES
echo.
echo.
echo ERROR: Your entry must be Y(es), N(o) or Q(uit)
echo.
goto DOCSD
:COPYFILES
cls
echo.
echo.
echo PLEASE WAIT WHILE THE ORIGINAL FILES ARE BEING BACKED UP....
echo.
echo.
COPY %ETC%\..\BIN\COMPRESS.EXE CP$.EXE>nul
echo .... NBTCP.EXE -- NBTCP.EX@
if exist BIN\NBTCP.EXE CP$ BIN\NBTCP.EXE BIN\NBTCP.EX@ >nul
echo .... NBDOWN.EXE -- NBDOWN.EX@
if exist BIN\NBDOWN.EXE CP$ BIN\NBDOWN.EXE BIN\NBDOWN.EX@ >nul
echo .... MAPNAME.EXE -- MAPNAME.EX@
if exist BIN\MAPNAME.EXE CP$ BIN\MAPNAME.EXE BIN\MAPNAME.EX@ >nul
if exist DOC\READ.ME CP$ DOC\READ.ME DOC\READ.ME@ >nul
ERASE CP$.EXE>nul
:REALLYDOCSD
cls
echo.
echo.
echo PLEASE WAIT WHILE THE CSD IS BEING APPLIED....
echo.
echo.
@echo off
COPY %ETC%\..\BIN\DECOMP.EXE DC$.EXE>nul
echo ....%CSDTYPE%CSD.DOC
COPY %DSK%%CSDTYPE%CSD.DOC DOC\%CSDTYPE%CSD.DOC >nul
echo .... NBTCP.EX# -- NBTCP.EXE
DC$ %DSK%NBTCP.EX# BIN\NBTCP.EXE >nul
echo .... NBDOWN.EX# -- NBDOWN.EXE
DC$ %DSK%NBDOWN.EX# BIN\NBDOWN.EXE >nul
echo .... MAPNAME.EX# -- MAPNAME.EXE
DC$ %DSK%MAPNAME.EX# BIN\MAPNAME.EXE >nul
ERASE DC$.EXE>nul
echo.
echo.
cls
echo.
echo The Corrective Service has been installed correctly...
echo.
if not exist DOC\%CSDTYPE%CSD.DOC goto nocsddoc
echo Please look at the file DOC\%CSDTYPE%CSD.DOC to see what has been
echo fixed in this CSD.
echo You should also examine DOC\SLIP.DOC, DOC\TFTP.DOC, and DOC\FTP.DOC
echo for changes since the manuals were printed.
:nocsddoc
echo.
echo.
:installed
%DSK%TCPSETV %CSDNO%
call POPD$
ERASE %TCPBASE%\POPD$.BAT>nul
echo CSD %CSDNO% is installed.
:QUIT
SET DSK=
SET D=