tobiasbayer
tobiasbayer

Reputation: 10379

Creating a shortcut icon on the Windows desktop

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

Upvotes: 4

Views: 2337

Answers (1)

Dan
Dan

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

Related Questions