Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get ip address of another computer
Message
From
26/01/2006 09:48:06
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01090457
Message ID:
01090491
Views:
10
>>Does anyone have a sample of how to retrieve the IP address of another computer on a network. I know the computer names, but need to get the IP addresses.
>>
>>Thanks in advance
>
>First (and ugly) thing that comes to my mind:
>
>RUN ping REMOTECOMPUTERNAME > PingIp.TXT
>m.lcStr = FILETOSTR([PingIp.TXT])
>m.lcStr = SUBSTR(m.lcStr,AT("[",m.lcStr)+1)
>m.lcIP  = LEFT(m.lcStr,AT("]",m.lcStr)  -1)
>
>not tested, no error handling.


Thanks I will give this a try

Paul
Previous
Reply
Map
View

Click here to load this message in the networking platform