Once I have all the files I can do some Excel/Power Query foo to get the results.
The problem I am running into is the output only provides last two lines of the first IP address in the file.
It loops through the list and creates separate files but the file only contains last two lines of the very first IP in the list.
Code: Select all
Loop, read, C:\temp\IPList.txt
{
FileName = %A_LoopReadLine%.txt
RunWait, %comspec% /c nslookup %A_LoopFieldReadLine% >C:\temp\%FileName%,,hide
}
Thanks ahead of time.