wntResources

Itemizes network resources.

(This function has been superseded by wntResources2 )

Syntax:

wntResources ( net-resource, scope, type, usage )

Parameters:

(s) net-resource: a UNC (e.g., "\\FredsPC"), a domain (e.g., "SALES") or ("") for the root of the network.

(i) scope: see below.

(i) type:  see below.

(i) usage: see below.

Returns:

(s) a tab-delimited list of network resources.

 

This function returns a tab-delimited list of network resources which are located immediately below the specified 'net-resource'.

 

'Scope' can be one of the following:

Request

Meaning

1

All currently connected resources 

2

All resources on the network 

3

All remembered (persistent) connections 

 

'Type' can be one of the following:

Request

Meaning

0

All resources 

1

All disk resources 

2

All print resources 

3

All disk and print resources 

 

'Usage' can be one of the following:

Request

Meaning

0

All resources 

1

All connectable resources 

2

All container resources 

3

All connectable and container resources 

 

 

Note: 'usage' is ignored unless 'scope' == 2.

 

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

servers = wntResources("OFFICE", 2, 1, 1) daserver = AskItemlist("Available servers", servers, @TAB,@SORTED,@SINGLE) shares = wntResources(daserver, 2, 1, 1) share = AskItemlist("Shared directories on %server%", shares, @TAB, @SORTED, @SINGLE) Exit
See Also:

wntResources2