I am using Windows XP
and my 'hosts' file (located in C:/WINDOWS/system32/drivers/etc/hosts)
gets deleted automatically .
I am able to edit that file with edit in a command prompt.
But whenever i try to open that file or any other file from the same
directory (i.e. /etc) my hosts file gets deleted.
I can see it disappearing.
I have done enough googling for solving this issue but no luck
also i tried AVG - anti virus, malware sweeper and Hijackthis but none
of those worked.
Any idea how can i solve this issue.
Help appreciated.
Thanks,
Prashant Marne.
> Any idea how can i solve this issue.
How about marking it Read Only, for a start?
> I am using Windows XP
> and my 'hosts' file (located in C:/WINDOWS/system32/drivers/etc/hosts)
> gets deleted automatically .
> I am able to edit that file with edit in a command prompt.
> But whenever i try to open that file or any other file from the same
> directory (i.e. /etc) my hosts file gets deleted.
> I can see it disappearing.
I couldn't recreate your problem.
Tried it from the command prompt and I see nothing disappear.
Edit another file in /etc and nothing disappear.
I normally use Explorer to go to /etc and clicking on hosts I select wordpad
to open the hosts file.
Made some changes and saved it ( sometimes the file is in use and sometimes
not but it could be saved ).
Copying the hosts file from somewhere else to overwrite hosts in /etc always
succeeded.
Maybe you could use Filemon to see what program loves to remove your hosts
file.
Nil already suggested : "How about marking it Read Only, for a start? " ;
did that any good?
Do you have some virusguard active?
Use the 'attrib' command to see what file attributes are set on the
"hosts" file. Could be it marked with the hidden or system file
attributes. Just because a file is hidden doesn't mean that you are
barred from editing it.