delphi - Extract OLE linked file path from disk file - Stack Overflow

I'm working with a Delphi codebase where I need to extract the file path of a linked file in an OL

I'm working with a Delphi codebase where I need to extract the file path of a linked file in an OLE container. The container is saved on disk, and is openable with the methods TOleContainer.LoadFromFile(containerPath) and TOleContainer.DoVerb(ovShow), where Windows handles the rest and opens the linked file after showing a prompt to the user.

Now while that works as expected, I struggle to extract this file path without using these methods, as for example in a micro-service with no human interaction.

When you open the container saved on the disk with a text editor, most of the content is binary but you still can clearly read the file path in plaintext.

Is there a way to access the OLE linked file path without having to extract the path from the raw text of the container file?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744155739a4560850.html

相关推荐

  • delphi - Extract OLE linked file path from disk file - Stack Overflow

    I'm working with a Delphi codebase where I need to extract the file path of a linked file in an OL

    9天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信