wntAddDrive

Maps a drive.

Syntax:

wntAddDrive(user-id, pswd, net-resource, local-drive, persist)

Parameters:

(s) user-id: user-id or @DEFAULT for current user

(s) pswd: password or @DEFAULT for current password or @NONE for no password

(s) net-resource: UNC netname of net resource

(s) local drive:  local drive id e.g. ("K:") or @NONE for connect only

(s) persist: @TRUE - Specifies persistent connection, one that will automatically reconnect when you reboot windows.@FALSE - Specifies a temporary connection.

Returns:

(i) always 1

 

This function allows a connection to be made to a net resource, and, optionally, a drive to be mapped to the net resource.

 

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

wntAddDrive(@DEFAULT,@DEFAULT,"\\SERVER\PUB","E:",@FALSE) RunWait("E:\EXCEL\EXCEL.EXE","\E") wntCancelCon("E:",@TRUE,@TRUE) Exit
See Also:

wntDirDialog, wntCancelCon