Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Workstation's IP Address
Message
 
À
03/07/2001 10:55:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00526200
Message ID:
00526310
Vues:
16
This is not pretty, but it does work. (just tried it)

**getip.prg
if file("ip.txt")
erase ip.txt
endif
run ipconfig >ip.txt
m_file=filetostr("ip.txt")
m_start = at("IP Address",m_file)+36
m_ip = substr(m_file,m_start,12)
erase ip.txt



Bob Lee

>>Do you want it programatically?
>
>Yes
In the beginning, there was a command prompt, and all was well.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform