ExtractFileDrive

From SCAR Divi Manual
Revision as of 14:31, 3 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function ExtractFileDrive(FileName: string): string; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Extra...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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