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: ETC directory

26 Mar 2017   #1
barsim

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
ETC directory

Hello,
I was looking for the HOST files, and of course had to open the ect directory first where HOST was found.
Besides a bunch of backups were there. I think those were created by Spybot search & destroy program that I no longer use.
My question is, can I safely delet them?
Thank you
barsim




Attached Files
File Type: txt hosts.txt (427.4 KB, 7 views)
My System SpecsSystem Spec
.
26 Mar 2017   #2
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

You can keep the following and delete the rest:
Code:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
So delete everything after the last line shown above.
My System SpecsSystem Spec
26 Mar 2017   #3
barsim

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Re ETC directory

Dear Callender,
Thank you for the aswer.
Should have specified more accuratly.
See the highlighted files in the screenshots 1. and 2.. They are the ones I was talkig about as deletable?
Thank you again


Attached Thumbnails
ETC directory-hostbackups1.jpg   ETC directory-hostbackups2.jpg  
My System SpecsSystem Spec
.

26 Mar 2017   #4
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I looked at your attachment and thought you were asking if entries in your hosts file could be deleted.

As for backed up hosts files - if you don't need them you can delete them.

The file named HOSTS without a file extension is the active hosts file. Those other with the .backup extension are old backups and assuming that you do not wish to transfer any entries from those into your current hosts file or wish to keep them for reference purposes you can delete them.
My System SpecsSystem Spec
26 Mar 2017   #5
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I have to say that the one that is 1kb in size looks like it mught be a copy of the original hosts file so you should keep that one.
My System SpecsSystem Spec
26 Mar 2017   #6
Alejandro85

Windows 7 Ultimate x64
 
 

No idea where they've come from, but it seems some sort of automated backup. All of those are completely ignored by Windows and can be safely deleted (the only consequence being not being able to restore them if needed).

BTW, the best form of a backup would be to copy it to somewhere else, preferably an external disk. Leaving them alongside the original only protects against accidental modification, but not against deliverate attacks.


Quote   Quote: Originally Posted by Callender View Post
You can keep the following and delete the rest:
Code:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
So delete everything after the last line shown above.
Doing so destroys any custom configuration that may be there, replacing it with a completely empty hosts file (every single line is a comment). Without knowing exactly the system of the OP, this is NOT a safe approach.
My System SpecsSystem Spec
26 Mar 2017   #7
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Alejandro85 View Post
Doing so destroys any custom configuration that may be there, replacing it with a completely empty hosts file (every single line is a comment). Without knowing exactly the system of the OP, this is NOT a safe approach.
True. I misunderstood the original question where the OP states that Spyboy S&D is no longer required with an attached hosts file that only contained entries added by Spybot S&D and no other entries have been added.
My System SpecsSystem Spec
27 Mar 2017   #8
barsim

Microsoft Windows 7 Professional 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Dear Callender,
THKX for the help.
barsim
My System SpecsSystem Spec
Reply

 ETC directory




Thread Tools




Similar help and support threads
Thread Forum
Files won't delete in directory - can't rename the directory either
So i have 3 files i cannot delete after uninstalling a game. I also cannot rename the folder they are in without windows explorer not responding and i have to restart explorer. I did take ownership method but that froze up to. I went into safe mode, and tried it that way - also didn't delete, it...
General Discussion
Cannot change directory (CD) to a directory with space in the name
Following the directions outlined in https://www.sevenforums.com/general-discussion/144154-change-directory-command-prompt.html including enabling command extensions outlined in https://www.sevenforums.com/general-discussion/41993-command-line.html does not permit the CD command to change the...
General Discussion
What is this directory?
The following directory has zero files. What is it? C:\2f04dd45bebca7274eda34cc24490614 Thanks, Mark
General Discussion
Replace files in multiple directory, from a single directory
I have a 10 files that have all been categorised into about 40 folders. These files have been damaged. I have a backup of all these files, but they are not categorised and sit in a single directory. Does anyone know of an easy technique to batch replace the damaged files with the originals? ...
General Discussion
temp directory
Question about new temp location for Windows 7 (C:\Users\isco202\AppData\Local\Temp) This could be a problem for very often we use the %temp% folder in our scripts to put files there temporary. If no user logged on or we are distributing it via SMS, I wonder what is the %Temp% environment...
General Discussion


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 01:42.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App