Jump to content

Easy network / hosts file switcher?


Recommended Posts

Posted

Hey Guys, I have to find something to allow our engineers to switch host files quickly and easily.

Our engineers need to connect our laptops to the planes we fly, then afterwards re-connect to our internal network.

So... Im looking for a freeware package, maybe one that sits in the systray and allows us to right click and select the correct hosts file to use, then maybe refresh the network settings so it takes affect.

Both networks use the same IP ranges, so thats not an issue.

Can anyone recommend anything?

Cheers!


Posted

You could simply make a registry file that changes the key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath

Put each hosts file in a seperate folder, then make a .reg file to change the databasepath. Make a batch file that stops the tcpip service (net stop tcpip), imports the reg file, then starts the service (net start tcpip).

Or possibly the netsh command might help.

-gosh

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...