上传到 OpenText LiveLink 时保留原始文件日期
将文档上传到 LiveLink 时(我们使用的是 9.7.1),文件上的原始创建数据将更改为文件上传的日期/时间。这是有道理的,但是有没有一种简单的方法来上传文件并保留文件创建日期?
第三方解决方案或特定定制开发方法将会有所帮助。重点是简单。我们希望多次上传离散的数据集,而不是一次上传大量数据。
非特定于 LiveLink 9.7.1 的通用方法和解决方案没有帮助。
When uploading documents to LiveLink (we're using 9.7.1) the original create data on the file is changed to the date/time the file was uploaded. This make sense, but is there an easy way to upload files and preserve the file create date?
Third party solutions or specific approaches for custom development would be helpful. The emphasis is on easy. We're going to want to upload discrete sets of data multiple times, as opposed to a large set of of data one time.
General approaches and solutions not specific to LiveLink 9.7.1 aren't helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我能想到的最简单的解决方案是使用 LAPI。 LAPI包含用于上传文档的函数,一旦上传,您可以使用UpdateObjectInfo函数修改其属性(包括创建日期)。
The easiest solution I can think of is to use LAPI. LAPI contains functions for uploading documents, and once they are uploaded, you can modify its properties (including the create date) with the UpdateObjectInfo function.
我从来没有发现这在 Linux 或 Windows 上是可能的。 DataTime 字段存储在本地 - 它们不会写入您正在更改或移动的文件中。
这也是一个合乎逻辑的结论...如果您更改日期时间并且操作系统将该日期时间放入文件中,它将更改 MD5 哈希值,从而更改文件。
您还可以执行服务器端脚本来在上传之前获取文件的日期,然后在上传后立即将其写入文件。
I have never found this to be possible with Linux or Windows. DataTime fields are locally stored - they are not written to the file you are changing or moving.
This is also a logical conclusion ... if you change the datetime and an operating system placed that datetime in the file it would change the MD5 hash, therefore changing the file.
Also you could do a server-side script to get the date of the file before upload, then write it to the file as soon as it is uploaded.
我对您所说的程序一无所知,但这可能会帮助您找到解决方案:
如果您使用的是 Windows,则有此 http://www.nirsoft.net/utils/nircmd.html 它支持通过命令行更改文件的创建/修改时间。
I know nothing of the program you speak of but this might help you come to a solution:
If you are on Windows there is this http://www.nirsoft.net/utils/nircmd.html it supports changing created/modified time on files via command line.
使用对象导入器上传文档时可以保留创建日期
创建日期可以在 OI 中使用的 xml 文件的标签中找到
You can preserve the creation date when uploading documents using the Object Importer
The creation date can be found in the tag in the xml files used within the OI
我建议不要使用 Content Server (Livelink) 中所谓的系统属性(创建日期、修改日期)。相反,如果文件创建日期对您具有业务意义,请将此日期存储到自定义类别/日期属性字段中(使其只读)。
如果您的外部应用程序提供文件上传功能,则可以使用外部应用程序的 LAPI 很好地完成此操作。
如果您使用开箱即用的文件上传屏幕,则可以通过覆盖 LLNODE 模块中的节点创建后脚本来实现此目的。
I would recommend not to play with the so called system attributes (creation date, modified date) in Content Server (Livelink). Instead, if the File creation date is of business significance to you, store this date into a custom category/date attribute field (making it read-only).
This can be very well done either using LAPI from external application, if your external application provides File upload functionality.
If you are using out-of-the box File upload screen, you can achieve this by over-riding post-node-creation scripts from LLNODE module.