Dennis C
Dennis C

Reputation: 24747

How do you create (and read) windows shortcut(.lnk file) in Java?

Same question, different langauge.

How do you do it in Java? Do you use JNI? run exe? or are there any library read/write *.lnk like POI read/write *.xls?

I used to workaround to create ".url" which is plain text INI file. But I am looking for other interesting way to do it.

Upvotes: 5

Views: 12829

Answers (1)

BraveSirFoobar
BraveSirFoobar

Reputation: 792

I would use a JNI interface if the goal is quality.

http://alumnus.caltech.edu/~jimmc/jshortcut/

For quick hacks, (on my workstation only) : System.Exec() a vbscript :-) (I know, i know).

Upvotes: 5

Related Questions