如何在 Java 中创建(和读取)Windows 快捷方式(.lnk 文件)?
同样的问题 ,不同的语言。
在 Java 中你是如何做到的? 你使用JNI吗? 运行exe? 或者是否有像 POI 读/写 *.xls 这样的库读/写 *.lnk?
我曾经使用解决方法来创建“.url”,它是 纯文本 INI 文件。 但我正在寻找其他有趣的方式来做到这一点。
Same question, different langauge.
How do you do it in Java? Do you use JNI? run exe? or are there any library read/write *.lnk like POI read/write *.xls?
I used to workaround to create ".url" which is plain text INI file. But I am looking for other interesting way to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果目标是质量,我会使用 JNI 接口。
http://alumnus.caltech.edu/~jimmc/jshortcut/
对于快速破解, (仅在我的工作站上):System.Exec() a vbscript :-)(我知道,我知道)。
I would use a JNI interface if the goal is quality.
http://alumnus.caltech.edu/~jimmc/jshortcut/
For quick hacks, (on my workstation only) : System.Exec() a vbscript :-) (I know, i know).