Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Windows 7 operating system. I would like to edit a data file named "hosts" that is found in the following library: c:\windows\system32\drivers\etc\hosts The OS does not allow changes, and I do not know how to acquire administrator's power to be able to make the change. In addition, which program can edit such a file (a built-in text editor or an external one)?

share|improve this question

From the Start menu, search for Command Prompt. Right-click on the Command Prompt application and choose Run as Administrator.

At the command prompt type:

notepad C:\Windows\System32\drivers\etc\hosts

This will open notepad as an administrator which will let you edit and save the file.

share|improve this answer

You can run Notepad as Administrator (Right click on the shortcut in your start menu and choose 'Run as Administrator'), then open the HOSTS file from within Notepad.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .