Editing the Hosts file

Discussion in 'Windows Applications' started by greatg, Jan 4, 2009.

  1. greatg

    greatg OSNN Junior Addict

    Messages:
    17
    Running Vista 32 bit. Have deactivated UAC and trying to edit the Hosts files located in C:\Windows\System32\drivers\etc. I'm using notepad to make the changes. When I try to save, I get a message "C:\Windows\System32\drivers\etc\hosts file. Make sure that the path and file name are correct. " When I try to save in a different location, notepad only allows me to save as .txt? Is there some way to save as per original file extension?
     
  2. Johnny

    Johnny .. Commodore .. Political User

    Messages:
    5,015
    Location:
    Happy Valley
    The host file is a txt file, per-se. Using a notepad and saving it with out changing the ext on it will allow you to save it.
     
  3. Steevo

    Steevo Spammer representing. Political User Folding Team

    Messages:
    2,566
    This will also make it invalid and the backup copy will be moved in.


    Right click it and change permissions on your account to allow full control.
     
  4. Johnny

    Johnny .. Commodore .. Political User

    Messages:
    5,015
    Location:
    Happy Valley
    If you right click on it and select edit. Then just save it, it will save as default. The point I was trying to make.
     
  5. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    What you have to do is open Notepad first, as administrator. Go to the start menu, type in "notepad" in the search box and it should display Notepad in the top section. Right-click on the icon for Notepad, choose "run as administrator". Once you have it open that way, go to File, Open and browse to the hosts file.

    There may be an easier way, but that's the only way I've been able to do it.