Hi Ken,
>I need someone to convert this to VFP9 speak.
strComputer = "."
objWMIService = GetObject( "winmgmts://"+strComputer+"/root/cimv2" )
colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard")
If colItems.Count == 0
colItems = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem")
EndIf
For Each objItem in colItems
Manufacturer = objItem.Manufacturer
Next
if Manufacturer = "Microsoft Corporation"
? "In Microsoft virtual machine"
else
? "Not in Microsoft virtual machine"
EndIf
I added "Win32_ComputerSystem" since on my machine the count for
Win32_BaseBoard was 0.
--
Christof
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.