After looking and reading for a while, I am posting the question.
VB6, I want to do a pop up window showing the servers found on a network. Then of course allow the user to select. I can use dblocate from cmd prompt. I have not been able to find the command to do this as the "FIND" option does in ISQL-10 .
Can someone be kind enough to point me in the right direction. I seem to be overlooking it. I can use a shell call, but that does not seem clean. Am I just overlooking it.
asked 04 May '12, 15:41
What exactly do you mean? Do you generally want to avoid a shell call, or does it not work as expected?
AFAIK, Calvin's hint to the DBTools API won't work, as there is no according DBLocate() function (or at least I'm not aware of one).
The DBLOCATE tool itself uses a dblibX.dll function, see the discussion in this FAQ on dblocate vs. dbping.
FWIW, the according function is called db_locate_servers_ex function. As this (like the DBTools API functions) is a C-based API, I don't know how difficult it is to call this (including the needed callback function) from VB6.
IMHO, calling the external DBLOCATE utility (with the -o and -q options, I recommend) and parsing the according message log file (as specified by -o) would seem much easier.