With Win2K and XP you can use the command netsh.exe and then go to interface ip and make adjustments there. You may be able to copy netshell.dll and netsh.exe to an NT 4 system and try it there....
I wrote a batch file to easily switch ip settings between my home and work settings for my laptop using netsh.
here is the batch file - the remarks give the basic instructions on setting up the 2 text files you will need with your settings. A sample of my ipwork.cfg and iphome.cfg settings file is below that....
Let me know if you need any more details.
-Dave
********** ipswitch.cmd batch file************
REM Dave's IP address switcher - ipswitch.cmd
REM Use the command "netsh interface ip dump"
REM to output the current ip config for your network card
REM Copy the pertinant lines for your work config to a file called c:\ipwork.cfg
REM Modify the changes for IP address, def gateway, DNS, etc
REM for your home network and save as c:\iphome.cfg
REM Replace "INTEL PRO100 Mini PCI" below with the name of your
REM NIC/connection from the output above from netsh
:begin
@echo off
cls
echo ----------------------------------------
echo Your Current IP Settings are as follows:
echo ----------------------------------------
netsh interface ip show addre "INTEL PRO100 Mini PCI"
echo ********************************************************************************
CHOICE /C:HWQ /T,7 Select H-home settings, W-work settings, select Q to quit
edit the line above should read CHOICE /C:HWQ /T: Q,7 ...... but with no space between the : and the Q (which this makes an emoticon...)
if errorlevel 3 goto nope
if errorlevel 2 goto work
if errorlevel 1 goto home
:home
cls
echo ----------------------------------------
echo Changing to Home Address
echo ----------------------------------------
netsh -f c:\iphome.cfg
echo ----------------------------------------
echo Your New IP Settings are as follows:
echo ----------------------------------------
netsh interface ip show addre "INTEL PRO100 Mini PCI"
goto end
:work
cls
echo ----------------------------------------
echo Changing to Work Address
echo ----------------------------------------
netsh -f c:\ipwork.cfg
echo ----------------------------------------
echo Your New IP Settings are as follows:
echo ----------------------------------------
netsh interface ip show addre "INTEL PRO100 Mini PCI"
goto end
:nope
echo ----------------------------------------
echo IP Settings Not Changed
echo ----------------------------------------
netsh interface ip show addre "INTEL PRO100 Mini PCI"
:end
pause
********** sample ipwork.cfg settings file with static addresses ************
interface ip
set address name = "INTEL PRO100 Mini PCI" source = static addr = 192.168.198.60 mask = 255.255.255.0
set address name = "INTEL PRO100 Mini PCI" gateway = 192.168.198.249 gwmetric = 1
set dns name = "INTEL PRO100 Mini PCI" source = static addr = 192.168.198.251
add dns name = "INTEL PRO100 Mini PCI" addr = 192.168.198.249
set wins name = "INTEL PRO100 Mini PCI" source = static addr = 192.168.107.180
add wins name = "INTEL PRO100 Mini PCI" addr = 192.168.3.181
********** sample iphome.cfg settings file for dhcp ************
interface ip
set address name = "INTEL PRO100 Mini PCI" source = dhcp
set dns name = "INTEL PRO100 Mini PCI" source = dhcp
set wins name = "INTEL PRO100 Mini PCI" source = dhcp