Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function ExpandFileName(const S: FileName): string;
Retrieves the full path and filename of a specified (relative) file.
The ExpandFileName function merges the name of the current drive and directory with the specified filename to determine the full path and filename of the specified file.
This function does not verify that the resulting path and filename are valid or that they refer to an existing file on the associated volume.
Searching for Files
var AFileName, FullName : string;
AFileName := 'myprog.exe';
//displays 'C:\Program Files\Borland\Delphi7\Projects\myprog.exe'
// if 'C:\Program Files\Borland\Delphi7\Projects' current folder
Stop. This is the one and only solution to file searching. Use Delphi to find any file in any directory and/or subdirectory that match a certain mask. Start searching.
Building a mp3 player
ExpandUNCFileName, ExtractFileName, FileExists,
See how to build a full-blown mp3 player with Delphi in just a few seconds. Even more: get the ID3 tag information from a mp3 file and change it!
| Free Delphi code snippet inside every Delphi Newsletter!
| Got some code to share? Got a question? Need some help?