Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get ip address of another computer
Message
De
26/01/2006 09:48:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01090457
Message ID:
01090491
Vues:
11
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform