File: String;
The File property determines name of the file or application to be opened.
Sub Main;
Var
Info: IWinShellExecuteInfo;
Begin
Info := New WinShellExecuteInfo.Create;
Info.Directory := "C:\temp";
Info.File := "catalog.xls";
WinApplication.ShellExecute(Info);
End Sub Main;
After executing the example the catalog.xls file opens from the C:\temp directory.
See also: