Reputation: 10379
How can I create a Windows shortcut alias for an existing exe file from within a Java application?
Upvotes: 4
Views: 2337
Reputation: 364
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.
Upvotes: 1