OK, So I'm making a small batch script, That retrieves the IP of a website, And put it into a variable so we can use it later on. The problem is how do I get the IP of the website into a varible? The way I was going was
ping site.com >pinged.txt
But then your left with lots of text to wade through to get the IP.