U = smgr.GetString("UserName")
PW = smgr.GetString("Password")
SMB1.Initialize(FInfo.RetSub)
SMB1.SetCredentials(U, PW, "")
If FInfo.WD.StartsWith("smb:") = False Then FInfo.WD = "smb:" & FInfo.WD
SMB1.UploadFile(FInfo.LD, FInfo.LF, FInfo.WD, FInfo.WF)