@echo off
echo "Please enter Static IP Address Information"
echo "What is your Room number? Only works at WCHS"
set /p Room=
echo "Enter IP Range"
set /p Range=
echo "Enter Last Digits Of IP"
set /p IP_Last=
echo "Doing all yall stuff for ya"
netsh interface ip set address "Local Area Connection" static 192.168.%Range%.%IP_Last% 255.255.255.0 192.168.%Range%.1
netsh interface ip set dns name="Local Area Connection" source=static addr=192.168.0.20
netsh interface ip add dns name="Local Area Connection" addr=192.168.0.21 index=2
netsh interface ip set wins name="Local Area Connection" source=static addr=192.168.0.20
netsh interface ip add wins name="Local Area Connection" addr=192.168.0.21 index=2
wmic.exe ComputerSystem Where Name="%ComputerName%" Rename Name="WCHS%Room%-%Range%%IP_Last%"
netsh int ip show config
pause
I'd like to be able to put of "netsh interface ip set address "%Network_Interface_Name%" static 192.168.%Range%.%IP_Last% 255.255.255.0 192.168.%Range%.1"
Is this possible? Any help would be greatly appreciated, also the commands to use have to already be on XP and windows 7.
