ShellLinkObject object

May 3, 2021 · View on GitHub

Manages Shell links. This object makes much of the functionality of the IShellLink interface available to scripting applications.

Members

The ShellLinkObject object has these types of members:

Methods

The ShellLinkObject object has these methods.

MethodDescription
GetIconLocationGets the location of the icon assigned to the link.
ResolveLooks for the target of a Shell link, even if the target has been moved or renamed.
SaveSaves all changes to the link.
SetIconLocationSets the location of the icon assigned to the link.

 

Properties

The ShellLinkObject object has these properties.

PropertyAccess typeDescription
Arguments
Read/write
Contains a link's arguments.
Description
Read/write
Gets or sets the description of the link.
Hotkey
Read/write
Gets or sets the keyboard shortcut for the link.
Path
Read/write
Gets or sets the path to the link object.
ShowCommand
Read/write
Gets or sets the initial display state (sized, minimized, or maximized) of the link's command.
WorkingDirectory
Read/write
Gets or sets the working directory specified in the link.

 

Requirements

RequirementValue
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 5.0 or later)

See also

Shell Links