Subj : Re: [WINServer] AUP 451.9j GAMMA is available - FINAL To : All From : WINSERVER SUPPORT Date : Thu Jan 31 2019 19:17:14 Date: Mon, 30 Oct 2006 13:31:07 -0400 From: WINSERVER SUPPORT To: all Subject: Re: [WINServer] AUP 451.9j GAMMA is available - FINAL Newsgroups: winserver.public.gamma.testing Message-ID: <1162233344.40.0@winserver.com> X-Mailer: Wildcat! Interactive Net Server v7.0.454.5 Lines: 39 Small Correction on Developer note: ...... Now, all you need to do in step 2 is: step 2: set the attachment using full path name and copy file WcSetMessageAttachment(msg,"fullfilename",TRUE) This will properly set the both the SFN and LFN fields, check to make sure the LFN is not longer than 79 characters, and also COPY the file to the WC:\TEMP making it ready for the AddMessage() post to see the attachment. So you have for example: WcSetMessageAttachment(msg,"c:\somefolder\my long file name.doc",TRUE) AddMessage(msg,bodytext) Alternatively, you can call this function AFTER you call AddMessage(), like so: if AddMessage(Msg,bodytext) then WcSetMessageAttachment(msg,"fullfilename",TRUE) end if In this case, WcSetMessageAttachment() with the copy option set to TRUE, it will be smart enough to know to copy directly to the attachment folder rather than the wc:\temp folder when copying before you add the message. The only problem with this post copy method is that its quite possible for the target user, if he is online, to get an instant message WITHOUT the attachment because the copy wasn't done yet. So it is better to copy it first before calling AddMessage(). --- HLS The only problem doing it this method is that it is quite * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013) .