View Single Post
  #2   Spotlight this post!  
Unread 13-03-2009, 11:51
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Simple Team Number to IP Address Utility

Simpler yet:
Code:
set /p teamnum=What is the team number?
set /a teamnumhigh=%teamnum%/100
set /a teamnumlow=%teamnum%-100*%high%
netsh interface ip set address 10.%high%.%low%.6 static 255.255.255.0 1
Put it in a batch file (e.g. teamip.bat) on your desktop, double-click, and enter the team number when prompted.

The netsh command is powerful. You can make single-line batch files to reconfigure the computer to talk to the Axis camera, or to make it easy to switch between 10.0.0.6/255.0.0.0 (which will let the computer talk to any team's WGA) and the WGA's factory default address.
Reply With Quote