I want a batch file to pull information from the first line of a text file (notepad), use that information to add information to a DNS server, and then delete it. I'm thinking if I create a loop, I can make it go all the way through the text file, using the first line of information to add to the DNS server and then deleting the first line before starting a loop. For example... The batch file would be
@echo off :start dnscmd "mydns" /zoneadd (need to know the command from here to add the FQDN from the text file) ::(Need to know the command here to delete the first line of the text file and save the file) goto start
The text file reads
Siteno1.com Siteno2.com Siteno3.com
So I want it to add
Siteno1.com to the dns, then delete it, start at the beginning of the text file, and add
Siteno2.com to the dns, delete it, and start from the beginning again until the text file is empty.