DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Host Editor 7 - Hassle free host editing for Win7-XP  (Read 11,529 times)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Host Editor 7 - Hassle free host editing for Win7-XP
« on: July 18, 2011, 02:17 PM »
15:03:50 - me: anyone knows a host editor app that works under windows 7
15:04:51 - me: fed up trying to first find the hosts file, then not being able to save because I again forgot to run notepad with admin privileges.

Code: (autohotkey)
; HostEditor7 - Host Editor that runs under windows XP to windows 7. 
; Requires AutoHotkey v1.0.92.01+ and Windows XP or higher (untested)
#NoEnv
SetWorkingDir %A_ScriptDir% 
if not A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%" 
   ExitApp
}
Run, notepad.exe %A_WinDir%\system32\drivers\etc\hosts

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • Coding Snacks
Re: Host Editor 7 - Hassle free host editing for Win7-XP
« Reply #1 on: July 18, 2011, 03:41 PM »
Thanks!  :Thmbsup:

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Host Editor 7 - Hassle free host editing for Win7-XP
« Reply #2 on: July 19, 2011, 10:08 AM »
You could also try HostsMan. I have used it a bit.
The Help file is well worth a read. The program is full of handy features - e.g., restore the Hosts file to an earlier version or the system default if you've really mucked things up.

This is from the Readme file:
Quote
HostsMan 3.2.73
© 1997-2010 abelhadigital.com

Website: http://www.abelhadigital.com/
Forum  : http://forum.abelhadigital.com/
Email  : info@abelhadigital.com

Portions of this software are Copyright (c) 1993-2004, Chad Z. Hower (Kudzu)
and the Indy Pit Crew - http://www.nevrona.com/Indy/
Portions of this software are Copyright (C) 1999-2003 Mathias Rauen,
www.madshi.net, All Rights Reserved
Portions of this software are Copyright (c) 1999-2006  Jan Goyvaerts,  All
rights reserved. - http://www.regular-expressions.info/delphi.html
Portions of this software are Copyright (c) 1999-2006 Mike Lischke, All rights
reserved. - http://www.delphi-gems.com/
Portions of this software are Copyright (c) 2008, Primoz Gabrijelcic

SUPPORTED OPERATING SYSTEMS:
----------------------------

    Microsoft Windows 98 SE
    Microsoft Windows ME
    Microsoft Windows 2000
    Microsoft Windows XP
    Microsoft Windows Server 2003
    Microsoft Windows Vista
    Microsoft Windows Server 2008
    Microsoft Windows 7
    Microsoft Windows Server 2008 R2


LEGAL DISCLAIMER:
-----------------

    Please read license.txt.


Unzdll.dll AND ZipDll.dll INFO:
-------------------------------

    Author  : Chris Vleghert and Eric W. Engler
    Website : http://www.geocities.com/SiliconValley/Network/2114/
    Email   : englere@abraxis.com
« Last Edit: July 19, 2011, 10:12 AM by IainB »

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Host Editor 7 - Hassle free host editing for Win7-XP
« Reply #3 on: July 20, 2011, 08:21 AM »
Nice solution if you want a bit of extra functionality!

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Host Editor 7 - Hassle free host editing for Win7-XP
« Reply #4 on: July 21, 2011, 03:51 AM »
Nice solution if you want a bit of extra functionality!
@justice: Yes, it's pretty specialised.
I came across it a while back whilst experimenting to see if I could use the hosts file to get the same level of anonymity, targetted ad-zapping, cookie avoidance/spoiling, and reduced bandwidth utilisation as I had been able to get with JunkBuster years ago.
No go though.      :(

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: Host Editor 7 - Hassle free host editing for Win7-XP
« Reply #5 on: July 21, 2011, 10:53 PM »
I just keep a shortcut to my hosts file on my Quicklaunch, passing it as a command line parameter to Notepad2. Just have to remember to uncheck/check "Read Only" under the file menu before and after making any changes.

Original address: https://www.donationcoder.com/forum/index.php?topic=27355.0