>
I want to find all the ip addresses on my network - range 122.168.254.1 - 254
>>
>>I have written a small code with ping in a for next loop
>>ie run ping &pinga (which contains 192.168.254.1) incemented by 1 for each loop
>>
>>How can I get a return code (which VFP can use) of a successful ping>
>One simple way that comes to mind is to redirect th output to a file. Buld the command as follows:
>
>ping 192.168.254.1 > c:\temp\junk.txt
>
>then you open and inspect the file (maybe with
FILETOSTR()
)
>
>HTH
Alex
Does the trick
Thanks
Colin
Specialist in Advertising, Marketing, especially Direct Marketing
I run courses in Business Management and Marketing