is there currently a way to add entries to the hosts file on windows using wpi?
Page 1 of 1
is there a way to add entries to the host file using wpi?
#3
Posted 17 August 2010 - 07:27 PM
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!!
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!!
Attached File(s)
-
hosts.zip (4.82K)
Number of downloads: 15
This post has been edited by cworkman: 18 August 2010 - 05:59 AM
#4
Posted 14 October 2010 - 11:55 PM
Hmm, you could just use:
echo 127.0.0.1 bannedsite.com >> %windir%\system32\drivers\etc\HOSTS
- ← Config-Dependencies-GrayedCondition-FileVersionGreaterThan
- Windows Post-Install Wizard (WPI)
- how can i add wpi in window xp boot able cd →
Share this topic:
Page 1 of 1



Help
Back to top








