1

Is it possible the read the information/details of a shortcut on desktop with java? I mean the details like name, type, file size, path, creation date, changed date,...

ninjaxelite
  • 1,111
  • 2
  • 20
  • 38
  • 1
    See [here](http://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html). Give path of the desktop, iterate over all files, check if File is a regular file. If it is, get the Metadata that you want – Shreyas Chavan Aug 04 '15 at 20:13

1 Answers1

1

A Windows shortcut is a file itself, so accessing it as a file a good starting point.

To actually retrieve information related to the resource the shortcut points to, check the examples from:

Community
  • 1
  • 1
PNS
  • 18,385
  • 29
  • 90
  • 138