View Single Post
  #1   Spotlight this post!  
Unread 12-30-2012, 09:30 PM
Azrathud's Avatar
Azrathud Azrathud is offline
Computer Nerd
AKA: Bryce Guinta
FRC #2945 (BANG)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Colorado
Posts: 24
Azrathud is on a distinguished road
Tool to Manage Static Computer IP

I made a script to toggle between a set static IP and using DHCP in Windows. I hope it's useful to someone.

You can always find the latest version at manitourobotics/tools/windows/

To setup:
  • Download and extract attached zip to this post
  • Install python2 if you don't have it
  • Copy config.example.txt to config.txt and configure static_ip and interface_type
  • Create a shortcut to net-connect.bat by right-clicking on the file and clicking "Create Shortcut"
  • After creating the shortcut, right click on it and click properties. In the shortcut tab, click advanced... and check run as administrator(this program always needs to be run as admin). Click ok * 2
  • Drag shortcut to your start menu for fast switching

Changelog:
1.2:
  • Rename config.txt.example to config.example.txt for easier renaming
  • Add Windows line endings to config.example.txt, so notepad doens't display the file in one line
1.1:
  • Add config file
  • Less arcane output
  • Better error handling
Attached Files
File Type: zip toggle-interface-1.2.zip (2.6 KB, 15 views)

Last edited by Azrathud : 12-31-2012 at 05:08 PM.