*** Updated ***
>
>Please, what does "ADSI" and "WMI" mean?
>
>Hilmar.
Active Directory Services Interface (ADSI) - wrapper to WNet... WinAPI functions as well as some system information stuff (users, groups, printers, etc.)
Windows Management Instrumentation (WMI) - wrapper to a large number of WMI classes that objectify very nearly everything on your system (BIOS, Hard drives, network adapters, I/O ports, etc.)
Note: The GetObject function was enhanced/corrected in VFP 7 to handle the COM interface (IMoniker) that is needed to instantiate the WMI objects.
owmi = getobject('winmgmts:')
Previous to that, you had to use the following syntax:
oloc = createobject('SWbemScripting.SWbemLocator'
owmi = oloc.ConnectServer()
You can find out more information by searching MSDN (if not locally then
http://msdn.microsoft.com/library/default.asp.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao