Creating a shortcut icon on the Windows desktop
How can I cr开发者_如何学Ceate a Windows shortcut alias for an existing exe file from within a Java application?
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.
精彩评论