ANetResources()
ANetResources() returns an array of the file or printer shares available.
Usage |
nCount = ANetResources( ArrayName, cServer, nFileOrPrint ) |
Parameter |
Value |
Meaning |
ArrayName |
Array name |
The array to be filled with the requested information. The usual VFP array behavior occurs: If no resources are found, the array isn't created if it doesn't exist, and isn't redimensioned if it already exists. If the resources do exist, the array is created if necessary, and is redimensioned to a one-column array with the proper number of rows if it does exist. |
cServer |
Character |
The name of the network or domain resource to query. |
nFileOrPrint |
0 |
Return all resources. |
1 |
Return file resources. |
|
2 |
Return print resources. |
|
nCount |
Numeric |
The number of resources found. 0 if no resources are shared or the server can't be contacted. |
Example |
* Get the names of printer shares from Prometheus. ? ANETRESOURCES(laNet, "\\Prometheus", 2) |
See Also |