Article ID: 105042
Article Last Modified on 6/29/2004
SET LIBRARY TO SYS(2004)+'FOXTOOLS.FLL' ADDITIVE
addconn=RegFn('WNetAddConnection','CCC','I')
delconn=RegFn('WNetCancelConnection','CI','I')
=CallFn(addconn,"\\SERVER\SHARE","password","<drive>:")
=CallFn(delconn,"<drive>:",0)
Parameter Description
-------------------------------------------------------------------
lpszNetPathName A pointer to a null-terminated string specifying
the shared device or remote server, such as
\\SERVER\SHARE.
NOTE: Novell users should not use the double-colon syntax to reference a
server and directory, as they may be accustomed to doing. For example, do
not try referencing a directory using the following syntax:
\\server\volume::\mydirectoryInstead use this syntax: \\server\volume\mydirectory
lpszPassword A pointer to a null-terminated string specifying
the network password for the given device or
server. If there is no password, you must still
include a placeholder, as follows:
=CallFn(addconn,"\\SERVER\SHARE","","<drive>:")
lpszLocalName A pointer to a null-terminated string specifying
the local drive or device to be redirected. All
lpszLocalName strings (such as LPT1) are
case-independent. Only the drive names A through
Z and the device names LPT1 through LPT3 are
used.
Parameter Description
-------------------------------------------------------------------
lpszName A pointer to the name of the redirected local
device (such as LPT1: or D:).
fForce A Boolean value that specifies whether any open
files or open print jobs on the device should be
closed before the connection is canceled.
Additional query words: change net connection
Keywords: kbhowto kbnetwork kbcode KB105042