Last chance! 50% off unlimited learning
Sale ends in
Reads a Microsoft Windows Shortcut (.lnk file).
# S3 method for default
readWindowsShellLink(con, clean=TRUE, verbose=FALSE, ...)
A connection
or a character
string (filename).
If TRUE
, low-level file specific fields are dropped,
e.g. offsets on file locations.
If TRUE
, extra information is written while reading.
Not used.
Returns a list
structure.
This function is implemented based on the official file format
specification [1].
It is intended to replace readWindowsShortcut
(), which was
written based on reverse engineering (before [1] was made available).
[1] [MS-SHLLINK]: Shell Link (.LNK) Binary File Format, Microsoft Inc., September 25, 2009.
# NOT RUN {
pathname <- system.file("data-ex/HISTORY.LNK", package="R.utils")
lnk <- readWindowsShellLink(pathname)
str(lnk)
str(lnk$pathname)
lnk0 <- readWindowsShortcut(pathname)
str(lnk0$pathname)
# }
Run the code above in your browser using DataLab