在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.
更多推荐
发布评论