I am trying to read the target file / shortcut file (.lnk) file using Go.
I already have a loop for all the files in the directory, and I can successfully determine if it is a dir with IsDir()or if it is a file IsRegular(). Now I need a way to read if this is a link, and if so .lnk, the path to it so that I can print it.
I could not find a way to do this, and I was looking for SO, but nothing comes. Any idea?
source
share