nReturn = 0
lForce = .t. && disconnect even if files or jobs are on connection
lNoForce = .f. && fail to dissconnect if files or jobs are in connection
cResource = "\\Server\ShareName"
cPassword = "MyPassword" && empty if not needed
cDriveLetter = "Y:"
nReturn = WNetAddConnection(cResource,cPassword,cDriveLetter)
if nReturn = NO_ERROR
messagebox('Connection to server Successfull',0,'Shared Connect')
else
messagebox('Connection to server Failed',0,'Shared Connect')
endif
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.