Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Hosts File Editing


10 Apr 2011   #1

Windows 7 Home Premium 64 bit
 
 
Hosts File Editing

I've tried everything I've read on this forum to be able to edit my hosts file. I log on as administrator, I open my editor as administrator, I take ownership of the hosts file, but I still get the error:-

"Save Failed. Please check whether if this file is opened in another program."

What else do I need to do ?

Thanks for any help.

I should add that Apache is not running.

My System SpecsSystem Spec
.

10 Apr 2011   #2

Windows 7 Ultimate SP1 x64
 
 

Maybe you can try this. To run Notepad/Notepad ++ as Administrator(Right Click -> Run as Administrator) and select Open File. Browse the hosts file and try to edit and save it then.
My System SpecsSystem Spec
10 Apr 2011   #3

Windows 7 Home Premium 64 bit
 
 

False alarm. Problem is with my editor (not notepad). It couldn't see the etc folder under drivers when trying to find and open the hosts file. Searching for hosts, explorer found another in a really obscure folder, and it was this I was trying to edit. Problem solved using notepad. I'll have to find out what's happening with my editor.
My System SpecsSystem Spec
.


10 Apr 2011   #4

Windows 7 Ultimate SP1 x64
 
 

What editor was using before?
My System SpecsSystem Spec
10 Apr 2011   #5

Windows 7 Home Premium 64 bit
 
 

Notepad++
My System SpecsSystem Spec
10 Apr 2011   #6

Windows 8 Core X64
 
 

I have a little batch file called xhosts.bat I use to do this.

@echo off
c:
cd \windows\system32\drivers\etc
attrib -r hosts
notepad hosts
attrib +r hosts
My System SpecsSystem Spec
Reply

 Hosts File Editing




Thread Tools



Similar help and support threads for2: Hosts File Editing
Thread Forum
editing hosts file General Discussion
Hosts File General Discussion
Solved Hosts file editing: save problem General Discussion
HOSTS File - Create a "Edit HOSTS file" Shortcut Tutorials
BSOD after editing hosts file and running warcraft 3? BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:20 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33