读取LNK文件的一般方法 [英] General approach to reading lnk files
问题描述
几种框架和语言似乎具有lnk文件解析器(C#,Java,Python,当然还有其他无数种),以达到其目标,属性等.我想知道读取lnk文件的一般方法是什么,如果我想用另一种没有该功能的语言来解析lnk.是否有Windows API?
Several frameworks and languages seem to have lnk file parsers (C#, Java, Python, certainly countless others), to get to their targets, properties, etc. I'd like to know what is the general approach to reading lnk files, if I want to parse the lnk in another language that does not have said feature. Is there a Windows API for this?
推荐答案
Microsoft尚未提供描述lnk文件格式的官方文档,但是有些文档对此格式进行了描述.这是其中之一:快捷文件格式(.lnk)
There is not an official document from Microsoft describing lnk file format but there are some documents which have description of the format. Here is one of them: Shortcut File Format (.lnk)
对于API,您可以使用 IShellLink接口
As for the API you can use IShellLink Interface
这篇关于读取LNK文件的一般方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!