Determines network(s) installed.
NetInfo(requestcode)
(i) requestcode 0 for primary network name; 1 for secondary subnet list
(s) Primary network name for request code 0, or Secondary network list for request code 1.
Use this function to determine the network type(s) running on a workstation. When running in a mixed network environment, it may be important to be able to determine the types of networks running on a workstation so as to be able to load the appropriate network extender Dlls and issue the corresponding commands.
NetInfo(0) will return the string "WINNT" for 32-bit Windows platforms.
Under Windows NT+, NetInfo(1) will return a list of installed network provider ID's, delimited with the standard file delimiter (by default, a tab).
Possible providers, with their corresponding descriptions, are:
Provider ID |
Description |
LanmanWorkstation |
Microsoft Windows Network |
NetWareWorkstation |
NetWare Services |
NWCWorkstation |
NetWare or Compatible Network |
a = NetInfo(0) b = NetInfo(1) ;NT or newer c = "Network Provider ID's: " d = StrReplace(b, @TAB, ",") rslt = StrCat("Primary Network Name: ", a, @CRLF, c, d) Message("NetInfo Results", rslt)