• Creator
    Topic
  • #4133
    Marc
    Participant

    Any idea how I can save a attachment with a different name with this function ?

    utilities.SaveMsgFileAttachments(Msg, “Mime.822”, True, DEFAULTFOLDER)

    Or do I have to rename it afterwards ?
    If so what would be the appropiate function ?

    TIA marc

    [This message was edited by Marc on June 14, 2005 at 12:15 PM.]

  • Author
    Replies
  • #7224
    Support 1a
    Participant

    This function does not let you save the files using different names. You would have to rename the files afterwards (or use the native Attachments collection, which would let you provide the name to save each file as).

    Use the RenameFile() function to rename a file. It returns a boolean if the rename works. Use it like this:

    if RenameFile("c:transferoldname.htm", "C:transfernewname.htm") then
         MsgBox "File was renamed"
       end if
    

    I hope this helps.

    Advansys Support

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.