>Is there an API to map a Windows NT network drive letter? Similar to the NET USE dos prompt command.
>
>-Tim
Hi Tim,
To connect a local device to a network resource you can use WNetAddConnection function:
declare integer WNetAddConnection in "mpr.dll" string @, string @, string @
cServerName = "\\ServerName\Share_Name"
cLocalName = "T:" && "LPT1"
cPassWord = "" && "PassWord"
nResult = WNetAddConnection( @cServerName, @cPassWord, @cLocalName)
&& nResult = 0, if no errors occured
Best regards
Alex
Alex