Edit the Window's hosts file from the command line.
- Grab the code from this project.
- Build the solution using Visual Studio.
- Add the exe to PATH.
- In a command window with administrator privledges:
- Use 'hostsedit -a mywebsite.local' to add a line like '127.0.0.1 mywebsite.local' to the hosts file.
- Use 'hostsedit -a 127.0.0.1 mywebsite.local' to add a line like '127.0.0.1 mywebsite.local' to the hosts file.
- Use 'hostsedit -d mywebsite.local' to delete the line containing 'mywebsite.local'.
- Use 'hostsedit -s' to show the list of entries currently in the hosts file.