简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM