Re: Re: Re: How to change 'C:\ALONGN~1\NEW.TXT' to 'C:\ALongName\New.txt'


Posted by Jean Claude Servaye on July 04, 2000 at 14:46:45:

In Reply to: Re: Re: How to change 'C:\ALONGN~1\NEW.TXT' to 'C:\ALongName\New.txt' posted by Magus on July 04, 2000 at 01:47:49:

ExtractFileName and ExtractFilePath do the same job:

FileName := ExtractFileName(ExpandFileName('NewLon~1.txt'));
and
FilePath := ExtractFilePath(ExpandFileName('NewLon~1.txt'));