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