Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining an IP address from a url
Message
 
To
04/02/2008 16:08:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01289293
Message ID:
01289344
Views:
12
This message has been marked as the solution to the initial question of the thread.
Bill,

You can use WMI to do that
loLocator		= CREATEOBJECT('WBEMScripting.SWBEMLocator')
loWMI			= loLocator.ConnectServer()
lcURL			= 'yahoo.com'
loPingStatus		= loWMI.Get([Win32_PingStatus.Address='] + lcURL + ['])

? loPingStatus.ProtocolAddress
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform