I have fix'ed it and I now get the information I'm interested in.
Thanks.......
>>Does anyone have a routine that can return the computernames found under "network neighborhood".
>
>Take a look at ANETRESOURCES() under VFP6, or my NETRESOURCE class which can be downloaded from here on UT, which uses Win32 API calls, or the Shell.Application object's BrowseForFolder method (sample code for using this is in the FAQ as an enhanced GETDIR() alternative), or a few gazillion other ways to do the same thing.
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"