DECLARE INTEGER WNetAddConnection IN "mpr.dll" ; STRING cRemoteName, ; STRING cPassword, ; STRING cLocalName cResource = "\\Server\ShareName" cPassword = "MyPassword" cDriveLetter = "Y:" ? WNetAddConnection(cResource, cPassword, cDriveLetter) cResource = "\\Server\AnotherShare" cPassword = chr(0) && important distinction from the original (no password) cDriveLetter = "Q:" lnRetval = WNetAddConnection(cResource, cPassword, cDriveLetter) ?lnRetValA return of 0 means the connection was made. You get a non-zero value for a