|Hello, I've tried to find what i was looking for on the forums and the internet and have not been able to find an answer yet.|
Here is the situation:
I set up an ftp server on my friends computer (yippie) the bad news is his ISP gives him a dynamic EXTERNAL IP address... bad news for ftp'ing lol. We found a program that sences when his external ip changes, and it uploads a text file to my ftp server with just the new IP in it.
I would like to make a batch file that runs every hour or so (i can do that) but i want it to DELETE the old entry in the hosts file and then add the new ip to the hosts file. (I have the text file setup so that it has:
***.***.***.*** [tab] dan
this way when i want to ftp into his server all i need to do is type:
The key part that is stopping me from acomplishing this is that i need the old entry to be deleted, otherwise i am going to have multiple addresses for the same host (dan)
Thank you very much for your help =]