Hi,
I would know how is better manage the hosts file. I have to add a line and the hosts file could change in time (so I can't backup the file and substitute every times).
Is there a specific command for add (and automatic remove) the line each time?
Thanks
Here's a portable build I made of the application HostsMan which helps you manage the hosts file. You can use this to backup and restore the hosts file at your will.
https://github.com/demondevin/HostsManPortable
daemon.devin
Actually if you don't know your build is a FORK, so please don't offer it as your job and please respect the other authors.
The original is here: https://portableapps.com/node/56192 and it is still alive
Thanks for the answer, but I'm a little confused...
1) You said: "You can use this to backup and restore the hosts file". This is dangerous. If I open another application that use hosts, meanwhile the portable is running, the other application crash...
2) I don't understand your code (sorry I'm a newbie). Where is your copy of hosts file? Where you replace it? Or you suggest me to use Hostsman to manually menage the hosts file?
thanks again.
Correct. I'm merely giving you a means to manage your hosts file using the HostsMan program.
It's the one I use.
daemon.devin