- 4.74.2.11. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.11. FileSplit procedure
4.74.2.11. FileSplit procedure
Targets: MS-DOS, OS/2, Win32
WinDos Unit
Splits a file name into its three components.
Declaration:
procedure FileSplit(Path, Dir, Name, Ext: PChar): DWORD;
Remarks:
Use this procedure to break down a file specification into three parts:
path, file name, and file extension. Dir returns the path or directory
part of Path. Name returns the actual file name without
extension. Ext returns the file extension preceded by a period (.).
It is possible that one or more of the components be returned empty.
This occurs if Path contains no such component.
For instance, if there is no path, Dir is empty.
- 4.74.2.11. -