Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get Server Name
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00456426
Message ID:
00456440
Views:
25
>I use the following line of code to create a DCOM object.
>
>CREATEOBJECTEX( "{5A82A0A2-D1DE-11D4-BA25-400001020301}", "\\JUPITER")
>
>The calling program and the DCOM Object are on the same machine.
>Does anyone know of a VFP or API function to get the Server Name so it does not have be hard coded?
>
>Thanks.
>
>Dennis

This may be the cooler way to do it < g >:

oNetwork = CREATEOBJECT('Wscript.Network')
lcName = oNetwork.ComputerName
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform