View Single Post
  #4   Spotlight this post!  
Unread 13-03-2009, 16:21
elfinn elfinn is offline
Team 166 Mentor
AKA: Beth Finn
FRC #0166 (Chopshop Team 166)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Merrimack, NH
Posts: 14
elfinn is an unknown quantity at this point
Re: Simple Team Number to IP Address Utility

To keep from setting ALL your network interfaces, add the name parameter.
Here's an example from team 67 and one that sets it back to dhcp for normal operations:

cRIO_Connection.bat
@netsh interface ip set address name="Local Area Connection" source=static
addr=10.0.67.6 mask=255.0.0.0
@pause

Normal_Connection.bat
@netsh interface ip set address name="Wireless Network Connection" dhcp
@netsh interface ip set address name="Local Area Connection" dhcp
@pause
Reply With Quote