procedure CreateMap DECLARE INTEGER WNetAddConnection IN mpr.dll ; STRING cRemoteName, ; STRING cPassword, ; STRING cLocalName cResource = "\\R6rbs01\Vol2\Apps\Water" cPassword = chr(0) && important distinction from the original cDriveLetter = "Q:" lnRetVal = WNetAddConnection(cResource, cPassword, cDriveLetter) return (lnRetval = 0) procedure RemoveMap * DECLARE INTEGER WNetCancelConnection IN mpr.dll ; STRING cName, ; INTEGER nForce local nForce, lnRetval && nForce can be 0 or 1. 1 = Force the disconnect, even if files are open && in my testing, the drive mapping was removed regardless of this setting. lnRetVal = WNetCancelConnection("Q:", 0) return (lnRetval = 0)