Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Ping command
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028589
Message ID:
01028597
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform