Hosts and LMhosts file

(imported topic written by jpeppers91)

Is there a way to return the values of a host or lmhosts file.

(imported comment written by jessewk)

something like this?

Or do you just want to return the values? For example: lines whose (it does not start with “#”) of file (pathname of system folder & “\drivers\etc\hosts”)

Or am I completely missing the question?

(imported comment written by jpeppers91)

return the values like you described.

Thanks, that was exactly what I needed.