<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Edit Hosts file in Windows 7</title>
	<atom:link href="http://www.internoetics.com/2010/06/23/edit-hosts-file-in-windows-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.internoetics.com/2010/06/23/edit-hosts-file-in-windows-7/</link>
	<description>Blogging, code, marketing, online income, sales and other stuff...</description>
	<lastBuildDate>Sat, 04 Feb 2012 11:52:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Craig</title>
		<link>http://www.internoetics.com/2010/06/23/edit-hosts-file-in-windows-7/comment-page-1/#comment-10361</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Tue, 18 Oct 2011 03:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.internoetics.com/?p=302#comment-10361</guid>
		<description>None of that matters.  The problem lies in that you don&#039;t &quot;own&quot; the hosts file.  Save the following as &quot;takeown.bat&quot; and then run it to fix the issue:
@echo off
cls
%systemdrive%
cd &quot;%windir%\system32\drivers\etc\&quot;
ver &#124; findstr /i &quot;6\.0\.&quot; &gt; nul
IF %ERRORLEVEL% EQU 0 goto :takeown
ver &#124; findstr /i &quot;6\.1\.&quot; &gt; nul
IF %ERRORLEVEL% EQU 0 goto :takeown
ver &#124; findstr /i &quot;6\.2\.&quot; &gt; nul
IF %ERRORLEVEL% EQU 0 goto :takeown
ver &#124; findstr /i &quot;7\.0\.&quot; &gt; nul
IF %ERRORLEVEL% EQU 0 goto :takeown
goto :exit
:takeown
attrib -s -h -r -a &quot;%windir%\system32\drivers\etc\*.*&quot; /s /d
takeown /f &quot;%windir%\system32\drivers\etc&quot; /r /d y
icacls &quot;%windir%\system32\drivers\etc&quot; /grant administrators:F /t
:exit
exit</description>
		<content:encoded><![CDATA[<p>None of that matters.  The problem lies in that you don&#8217;t &#8220;own&#8221; the hosts file.  Save the following as &#8220;takeown.bat&#8221; and then run it to fix the issue:<br />
@echo off<br />
cls<br />
%systemdrive%<br />
cd &#8220;%windir%\system32\drivers\etc\&#8221;<br />
ver | findstr /i &#8220;6\.0\.&#8221; &gt; nul<br />
IF %ERRORLEVEL% EQU 0 goto :takeown<br />
ver | findstr /i &#8220;6\.1\.&#8221; &gt; nul<br />
IF %ERRORLEVEL% EQU 0 goto :takeown<br />
ver | findstr /i &#8220;6\.2\.&#8221; &gt; nul<br />
IF %ERRORLEVEL% EQU 0 goto :takeown<br />
ver | findstr /i &#8220;7\.0\.&#8221; &gt; nul<br />
IF %ERRORLEVEL% EQU 0 goto :takeown<br />
goto :exit<br />
:takeown<br />
attrib -s -h -r -a &#8220;%windir%\system32\drivers\etc\*.*&#8221; /s /d<br />
takeown /f &#8220;%windir%\system32\drivers\etc&#8221; /r /d y<br />
icacls &#8220;%windir%\system32\drivers\etc&#8221; /grant administrators:F /t<br />
:exit<br />
exit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://www.internoetics.com/2010/06/23/edit-hosts-file-in-windows-7/comment-page-1/#comment-1778</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Sun, 29 Aug 2010 08:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.internoetics.com/?p=302#comment-1778</guid>
		<description>Did you open the file as an administrator? Remember, drag and drop won&#039;t work - you&#039;ll have to hunt down the file from the open menu.</description>
		<content:encoded><![CDATA[<p>Did you open the file as an administrator? Remember, drag and drop won&#8217;t work &#8211; you&#8217;ll have to hunt down the file from the open menu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.internoetics.com/2010/06/23/edit-hosts-file-in-windows-7/comment-page-1/#comment-993</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 29 Aug 2010 07:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.internoetics.com/?p=302#comment-993</guid>
		<description>I tried that and it didn&#039;t work. cannot save the file</description>
		<content:encoded><![CDATA[<p>I tried that and it didn&#8217;t work. cannot save the file</p>
]]></content:encoded>
	</item>
</channel>
</rss>

