【问题标题】:Outlook Redemption: Releasing RDOMail from GetMessageFromMsgFile in VBScriptOutlook 兑换:在 VBScript 中从 GetMessageFromMsgFile 释放 RDOMail
【发布时间】:2021-02-08 08:50:32
【问题描述】:

我们使用 VBScript 来更改 .msg 文件的 EXIF 数据。

我们使用访问 msg 文件

Set Element = Session.GetMessageFromMsgFile(msgFilePath)

它工作正常,除了msg文件被锁定,因此将EXIF数据写入文件失败。

我如何释放 msg 文件 (Element),因为 Marshal.ReleaseComObject() 在 VBScript 中不起作用?设置 Element=Nothing 也不起作用。

谢谢! 克里斯

【问题讨论】:

    标签: outlook vbscript outlook-redemption


    【解决方案1】:

    在 VB 脚本中,只需将 RDOMail 对象设置为 Nothing 即可:

    set Element = Nothing
    

    【讨论】:

    • 嗨 Dmitry,Element 对象上有另一个引用。现在它起作用了。对不起-我的错:)。谢谢和最好的问候!克里斯
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多