Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.