Jump to content

is there a way to add entries to the host file using wpi?


Recommended Posts


well while i was waiting on a reply i made a custom solution!

if anyone else is interested here it is!

usage is as follows

to add an entry!

hosts.exe "/Add:74.208.10.249 gs.apple.com" "/Add:74.208.105.171 gs.apple.com"

to remove an entry!

hosts.exe "/Remove:74.208.10.249 gs.apple.com" "/Remove:74.208.105.171 gs.apple.com"

or mix & match

hosts.exe "/Add:74.208.10.249 gs.apple.com" "/Remove:74.208.105.171 gs.apple.com"

NOTE: requires .Net Framework 2.0

NOTE:this package adds the entries silently so you will not see any confirmation!

NOTE: this host file on windows vista is located @ C:\Windows\System32\drivers\etc\hosts

NOTE: if the hosts file on other versions of windows are located in a different location please let me know and i will add support!!

hosts.zip

Edited by cworkman
Link to comment
Share on other sites

  • 1 month later...

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...