2025-04-27 07:49:33 -04:00

34 lines
912 B
Batchfile
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo Unloading Netware shell and IPX protocol.
rem *************************************************************************
rem ** To invoke the DOS version independent NetWare shell, uncomment
rem ** the following two lines.
rem netx /u
rem goto IPXREL
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_UNLOADING
:DOS3x
net3 /u
goto IPXREL
:DOS4x
net4 /u
goto IPXREL
:DOS5x
net5 /u
:IPXREL
unload ipx
if errorlevel 1 goto ERROR_UNLOADING
goto END
:ERROR_UNLOADING
echo Netware unload aborted.
:END