System.IOUtils.TPath.GetPathRoot

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function GetPathRoot(const Path: string): string; static;

C++

static System::UnicodeString __fastcall GetPathRoot(const System::UnicodeString Path);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TPath

Description

Gets the root of the specified path.

GetPathRoot extracts and returns the root of the path specified in Path.

If the given path is empty or contains wrong path characters, GetPathRoot raises an EArgumentException.

See Also