在Windows桌面上创建快捷方式图标(Creating a shortcut icon on the Windows desktop)

编程入门 行业动态 更新时间:2024-10-27 14:34:28
在Windows桌面上创建快捷方式图标(Creating a shortcut icon on the Windows desktop)

如何从Java应用程序中为现有的exe文件创建Windows快捷方式别名?

How can I create a Windows shortcut alias for an existing exe file from within a Java application?

最满意答案

Windows快捷键是古老的怪兽。 您可以使用JShortcut http://alumnus.caltech.edu/~jimmc/jshortcut/ ,它使用JNI(Java Native Interface)创建快捷方式。 如果您只是在做一个快速实用程序,您也可以使用Runtime.exec()来调用VB脚本。

Windows shortcuts are hoary beasts. You could use JShortcut http://alumnus.caltech.edu/~jimmc/jshortcut/, which used JNI (Java Native Interface) to create the shortcut. If you are just doing a quick utility you can also just use Runtime.exec() to call a VB script.

更多推荐

本文发布于:2023-04-29 12:38:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336256.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:快捷方式   图标   桌面上   Windows   desktop

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!