ExtractFileDrive

From SCAR Divi Manual
Jump to: navigation, search

Definition

function ExtractFileDrive(FileName: string): string;

Availability

SCAR Divi 3.00 > Current

Description

Extracts the drive from a file path given by FileName.

Example

begin
  WriteLn(ExtractFileDrive('C:\Folder\File.Ext'));
  WriteLn(ExtractFileDrive('C:\Folder\'));
end.

Output:

C:
C:

See Also