OK, so someone else is driving the boat...

If you can't have a centrally managed WINS and DNS then at least your local hosts and lmhosts files should be managed. You should not be appending them but rather replacing them. Basically, what I'm saying is that you should know what is in them and what needs to be in them. Them you institute change management by logging everything in INI files.

If you want to go low tech and parse through them on every logon, then take a look at the FAQ

Topic: File Input/Output Primer

Be aware however that you could encounter NTFS permission issues.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.