5

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.

Community
  • 1
  • 1
Dennis C
  • 24,511
  • 12
  • 71
  • 99
  • Very similar to http://stackoverflow.com/questions/309495/windows-shortcut-lnk-parser-in-java ! References in mentioned thread (Same question) are usefull here too!! – guerda Dec 05 '08 at 13:34
  • for lack of better answers could you explain the trick you do with .url ? – pvgoddijn Jan 07 '09 at 14:47
  • @pvgoddijn please read http://www.cyanwerks.com/file-format-url.html – Dennis C Nov 29 '09 at 14:22

1 Answers1

5

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).

BraveSirFoobar
  • 794
  • 1
  • 6
  • 12
  • Not only does the supplied .dll not support x64, but **jshortcut** is GPL – arkon May 15 '12 at 22:16
  • Looks like it's LGPL now, and they claim 64-bit support on a contributed version via github (didn't test it out though) – CarlG Jul 27 '12 at 23:17