I've been beating my head trying to resolve a problem and I'm hoping someone may have an answer.
I need to insert 1 or 2 lines (most likely 1 line) into the HOSTS file without overwriting any existing entries that may already be in the HOSTS file and I need the script to be able to do this no matter which version of Windows (XP, Vista or 7) the end user has on their PC.
Note: The IP(s) and hostname(s) I am trying to insert are known values.
I seen several threads about working with th