It concerns the HOSTS file, Windows 7 Ultimate 64bit. I want all entries/lines with a certain name in it to be written in a .txt file. how can I do this in the command line tool?
1 Answer
Well you could use findstr:
findstr "localhost" C:\Windows\System32\drivers\etc\hosts > C:\localhost_hosts.txt
findstr
existed, just like myself... a great solution by Lenniey, though...