wntGetCon

Returns the name of a connected network resource.

Syntax:

wntGetCon(local name)

Parameters:

(s) local name local drive name or printer resource (ie.,LPT1).

Returns:

(s) name of a network resource.

 

wntGetCon returns the name of the network resource currently connected to a 'local name'. If the resource is not mapped a null string will be returned.

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

netrsrc=wntGetCon("K:") If netrsrc=="" Then Message("Drive K: is","not mapped") Else Message("Drive K: is mapped to",netrsrc) Exit
See Also:

wntAddDrive, wntDirDialog