shortcut LoadFromFile method
Return to Introduction  Previous page  Next page
Applies to
acShortcut component.  

Declaration
function LoadFromFile(const FileName: String): Boolean;  

Description
The LoadFromFile method reads the shortcut information from an .LNK file and fills the properties with determined values.  
 
tip Alternatively you can read the information from shortcut file just pointing the FileName property to .LNK file. Unlike the LoadFromFile method, the FileName property can be specified either at run- or design-time, so you can play with the component specifying the .LNK files and reading shortcut information even at design-time.  

See also
FileName property and SaveToFile method.