ShellLink

Class for accessing Shell Link objects (.lnk files)

Constructors

this
this(string fileName)

Read Shell Link from fileName.

this
this(const(ubyte)[] data, string fileName)

Read Shell Link from data. fileName should be path to the .lnk file where data was read from.

Members

Functions

arguments
string[] arguments()

Get command line arguments. Target file path is NOT included. Note: this function is Windows only.

argumentsString
string argumentsString()

Get arguments of for a Shell Link object as one string. Target file path is NOT included.

description
string description()

Get description of for a Shell Link object.

fileName
string fileName()

Get path of link object as was specified upon constructing.

iconLocation
string iconLocation()

Get icon location of for a Shell Link object.

relativePath
string relativePath()

Get relative path of for a Shell Link object.

resolve
string resolve()

Resolve target file location. Note: In case path parts were stored only as ANSI the result string may contain garbage characters if function is ran on other system than Windows or if user changes default code page and shell link did not get updated. If path parts were stored as Unicode it should not have problems.

workingDirectory
string workingDirectory()

Get working directory of for a Shell Link object.

Meta