Maps a drive.
wntAddDrive(user-id, pswd, net-resource, local-drive, persist)
(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.
(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.
; 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