Previous: FileSearch function To the Table of Content Next: GetArgCount function

- 4.69.2.11 -
Standard Units
WinDos Unti
WinDos Unit Procedures and Functions

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.


Previous: FileSearch function To the Table of Content Next: GetArgCount function
FileSearch function Table of Content GetArgCount function

- 4.69.2.11 -