To find just the ip address, you can pipe the output of Nslookup to the find command.
nslookup
www.google.com | find "Address"
this spits you out more than just the address, so you need to configure it a bit more.
From the initial nslookup, figure out what the IP of your computer's nameserver is. (you said mydns.com in your example)
So now we can eliminate that field's address
nslookup
www.google.com | find "Address" | find /v "xxx.xxx.xxx.xxx"
That should pop your answer out in one of two ways.
1. Address: xxx.xxx.xxx.xxx
2. Non-authoritative answer:
Address: xxx.xxx.xxx.xxx
I haven't figured out how to get rid of the Non-autoritative answer: yet, but I hope this gets you going in the right direction.
As far as how to get these into separate files, I would write a simple vbscript that reads from a file and loops through executing this batch file untill all addresses are used.