ImageEn, unit iexShellThumbnails

ShortcutToFilePath

ShortcutToFilePath

Declaration

function ShortcutToFilePath(const FileName: string): string;

Description

If the filename points to a file shortcut (.LNK file), then the result is the path of the destination file. Otherwise the result is the passed filename;

Example

// Convert shortcut to file path
targetPath := ShortcutToFilePath( 'C:\Links\MyPhoto.lnk' );

See Also

WindowsLaunchFile