Well!! what a topic I created!! [Eek!] well I managed to work this out with the input.. I manged to convert it to a string using...

while $count1 < 255 and $count2 < 111
shell "%COMSPEC% /e:1024 /c Del $testfile"
$statement = $site1+"."+$site2+"."+ $count2 +"."+$count1
shell "%COMSPEC% /e:1024 /c ping -a -n 1 -w 10 $statement >>$testfile"
gosub readit
$count1=$count1 + 1
loop