Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

ExtractFileDrive

Extract the drive part from a filename.

Declaration

Source position: finah.inc line 26

function ExtractFileDrive(

  const FileName: UnicodeString

):UnicodeString;

function ExtractFileDrive(

  const FileName: RawByteString

):RawByteString;

Description

Extracts the drive letter from a filename. Note that some operating systems do not support drive letters.

For an example, see ExtractFileDir.

See also

ExtractFileName

  

Extract the filename part from a full path filename.

ExtractFilePath

  

Extract the path from a filename.

ExtractFileDir

  

Extract the drive and directory part of a filename.

ExtractFileDrive

  

Extract the drive part from a filename.

ExtractFileExt

  

Return the extension from a filename.

ExtractRelativePath

  

Extract a relative path from a filename, given a base directory.


Documentation generated on: Dec 21 2024