Directory: String;
The Directory property determines the initial directory, from which a file or application is 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: