Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique ID for the machine.
Message
General information
Forum:
Windows
Category:
Other
Miscellaneous
Thread ID:
00985632
Message ID:
00985652
Views:
36
Thanks, but how do I do this in VFP?

>Hello Greg,
>
>you might use the MacAddress of the network card... this is unique and specific to a machine.
>
>in .NET
>
>
>                Dim query As System.Management.ManagementObjectSearcher = New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration where MacAddress is not null and IPEnabled = true")
>                Dim queryCollection As System.Management.ManagementObjectCollection = query.Get()
>                Dim mo As System.Management.ManagementObject
>
>                For Each mo In queryCollection
>                    Return mo("MacAddress").ToString
>                    Exit For
>                Next
>
>
>
>
>Hope that helps
> Alex
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform