0% found this document useful (0 votes)
26 views

NWLOAD

This batch script is designed to load the IPX protocol and the NetWare shell, handling various error conditions during the process. It checks the DOS version and executes the appropriate NetWare command based on the version detected. Additionally, it ensures that the necessary PATH environment variable entries are present after logging into the NetWare server, with specific instructions for error handling if components are missing.

Uploaded by

nn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

NWLOAD

This batch script is designed to load the IPX protocol and the NetWare shell, handling various error conditions during the process. It checks the DOS version and executes the appropriate NetWare command based on the version detected. Additionally, it ensures that the necessary PATH environment variable entries are present after logging into the NetWare server, with specific instructions for error handling if components are missing.

Uploaded by

nn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

@echo off

rem *************************************************************************
rem ** IPXMARK return value is 1 on error, 2 for already loaded condition.
rem *************************************************************************
echo Loading IPX protocol and Netware shell.
load ipx
if errorlevel 1 goto ERROR_LOADING
rem *************************************************************************
rem ** To invoke the DOS version independent NetWare shell, uncomment
rem ** the following two lines.
rem netx
rem goto LOGIN
rem ** End of DOS version independent NetWare shell lines
rem *************************************************************************
rem ** DOSVER return value is 1 on error (and DOS versions below 3.x),
rem ** DOS version otherwise.
rem *************************************************************************
dosver
if errorlevel 5 goto DOS5x
if errorlevel 4 goto DOS4x
if errorlevel 3 goto DOS3x
goto ERROR_LOADING
:DOS3x
net3
goto LOGIN
:DOS4x
net4
goto LOGIN
:DOS5x
net5
:LOGIN
echo.
echo Log in to the NetWare Server.
echo Type NWUNLOAD when you wish to unload NetWare.
@echo on
q:login %1
@echo off
echo.
rem *************************************************************************
rem ** Ensure that the entries in the PATH environment variable when IPXMARK
rem ** was run are still in the PATH environment variable after logging in
rem ** to the NetWare server.
rem ** The path to FIXPATH.EXE is explicitly specified because the NetWare
rem ** login may have removed the NETPROG directory from the path.
rem ** If the installer default for the NETPROG directory does not contain
rem ** FIXPATH.EXE, generate message so that the user knows to edit the
rem ** following lines for the correct path.
rem *************************************************************************
if not exist c:\lanman.dos\netprog\fixpath.exe goto ERROR_FIXPATH
c:\lanman.dos\netprog\fixpath.exe
goto END
:ERROR_FIXPATH
echo Please edit NWLOAD.BAT to run FIXPATH as described in NWLOAD.BAT.
goto END
:ERROR_LOADING
echo NetWare load failed.
:END

You might also like