Hi,
I am looking to create a batch file or script that will edit the Hosts file by adding entires to the 'localhost' section. It will need to be able to search the file to find out if there are existing entries (ie...the script has already been run) and either replace them or move them down.
Then it will need to save and close.
I am a newbie in the world of scripting. Anyone want to point me in the right direction?
I am looking to create a batch file or script that will edit the Hosts file by adding entires to the 'localhost' section. It will need to be able to search the file to find out if there are existing entries (ie...the script has already been run) and either replace them or move them down.
Then it will need to save and close.
I am a newbie in the world of scripting. Anyone want to point me in the right direction?
