从 Java 创建快捷链接 (.lnk)
我正在用 Java 编写一个安装程序(启动器),并且需要能够在此过程中在用户桌面上创建快捷方式。
我对任何想法都感兴趣,认为这是实现这一目标的最佳方法。我考虑过的一个选择是在 Windows 上使用 VB 脚本并使用本机“shortcut.exe”来为我完成此操作,但首选第三方文件实用程序。
I am writing an installer (launcher) in Java and require the ability to be able to create a shortcut on the users desktop during the process.
I am interested in any ideas as the best way to do this. My one option I have considered is using a VB Script on windows and using the native 'shortcut.exe' to do it for me, however a third party file utility would be preferred.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅这个类似的问题。 和这个。
经过快速谷歌搜索后,我找到了这个java库: http://alumnus.caltech.edu/~ jimmc/jshortcut/
See this similar question. and this.
After a quick google search I found this java library: http://alumnus.caltech.edu/~jimmc/jshortcut/