Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


w9x Functions and Specifying the Server Name

Keywords:   w9xServerList

Question:

In wntServerList, you can specify ("") as the first parameter, and then the domain, then "16|32" to get all PDCs and BDCs in a specified domain. But it looks like w9xServerList is a little different. I'm using w9xServerList, and do not want to have to specify a server for the first parameter. Is there any way, using w9xServerList or some other function, to get a list of all PDCs and BDCs in a domain, without having to specify a server in the first parameter?

If I specify ("", "APL", "16|32") I get, "Invalid Server Name".

Answer:

No, you always have to specify a server name for the w9x functions, because by definition the current machine can't be an NT server. You need to provide the name of a server in that domain.

See the function w9xGetDC function to help get a starting server name, if you have domain login.


Article ID:   W14264
Filename:   w9x Functions and Specifying Servername.txt