As a additional info... Form the SysUtils source code

> ExpandFileName returns the full path of Filename.
...
> function ExpandFileName(const FileName: string): string;
> Description
> The ExpandFileName function converts the relative file name into a fully
> qualified path name by merging in the current drive and directory. A fully
> qualified path name includes the drive letter and any directory and
> subdirectories in addition to the file name and extension. ExpandFileName
> does not verify that the resulting fully qualified path name refers to an
> existing file, or even that the resulting path exists.

{ ExpandFileName expands the given filename to a fully qualified filename.
  The resulting string consists of a drive letter, a colon, a root relative
  directory path, and a filename. Embedded '.' and '..' directory references
  are removed. }

Note that since it doesn't actually check the filesystem for physical names
the case of the filenames will not necessarily be correct so you will need to
check the 2 returrned name case-insensitively...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to