Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
procedure (const FullFileName: string; var Drive: Char; var DirPart: string; var FilePart: string);
Parses a full file name into its drive, path, and file name.
FullFileName must refer to an existing file or directory name.
var
Drive : Char;
PathPart, FileName : string;
//if Application.ExeName equals
//c:\Program Files\Borland\Delphi 7\Projects\Project1.exe
ProcessPath(Application.ExeName, Drive, PathPart, FileName);
//returns...
//
//Drive = 'C'
//PathPart = '\Program Files\Borland\Delphi 7\Projects'
//FileName = 'Project1.exe'
|
Searching for Files
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.
ExtractFileDrive,
ExtractFileExt,
ExtractFileName,
ExtractFileDir,
Detecting Drive Types
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|