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)
Undocumented in source.

Members

Enums

ShowCommand
enum ShowCommand

The expected window state of an application launched by the link.

Functions

arguments
string[] arguments()

Get command line arguments. Target file path is NOT included. Note: This function is Windows only. Currently this function allocates on each call.

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 for a Shell Link object.

fileName
string fileName()

Get path of link object as was specified upon constructing.

getIconLocation
string getIconLocation(int iconIndex)

Icon location to be used when displaying a shell link item in an icon view. Icon location can be of program (.exe), library (.dll) or icon (.ico).

hotKey
uint hotKey()

Get hot key used to start link target.

name
string name()

The name of a shell link, i.e. part of file name with directory and extension parts stripped.

relativePath
string relativePath()

Get relative path for a Shell Link object.

resolve
string resolve()

Resolve link target location. Windows-only.

showCommand
ShowCommand showCommand()

The expected window state of an application launched by the link. See ShowWindow.

workingDirectory
string workingDirectory()

Get working directory for a Shell Link object.

Meta