View Single Post
  #3   Spotlight this post!  
Unread 13-03-2009, 14:01
Eric Finn's Avatar
Eric Finn Eric Finn is offline
Registered User
FRC #0166 (Chop Shop)
Team Role: College Student
 
Join Date: May 2006
Rookie Year: 2005
Location: Merrimack, NH
Posts: 101
Eric Finn has a spectacular aura aboutEric Finn has a spectacular aura about
Send a message via AIM to Eric Finn
Re: Simple Team Number to IP Address Utility

Quote:
Originally Posted by Alan Anderson View Post
Simpler yet:
...
Aha! I knew there had to be an easier way!
I've made a batch file to perform the same task, with some improvements: after setting the IP address, you will be prompted for another team number and your old settings will be restored once you are finished.
Unfortunately it restores settings for all your network interfaces, not just the changed one. This takes quite a while for me (and my four network interfaces), but it will likely not take as long for others.

NOTE: Do *not* quit the batch file (by entering 0 as the team number) until you are ready to restore your settings. Also, if you quit using ctrl-c, the batch file will not restore your old settings if you run it again - It restores the settings from when the batch file was started.
EDIT: another note - don't delete ifcfg.txt while the batch file is running - it will be deleted after the batch file is exited normally (by entering 0 as the team number).

Team # to IP script [Windows batch]: http://goatsgomoo.arksaw.com/project...p/teamtoip.bat

Thanks for your help, Alan!
__________________
It always takes longer than you expect, even when you take into account Hofstadter's Law.
--Hofstadter's Law

Reply With Quote