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:
01028593
Views:
26
This message has been marked as the solution to the initial question of the thread.
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 Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform