Hi Ed,
I have downloaded your files, and it worked fine the first time. But now it kills VFP each time I run it.
It returns informations of the network printers 18 times before it kills VFP. The printers are connected to the network by an IP adress.
How can I change the program so it does'nt look for printers ???
>>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)"