Root(
     path:path
)
path

Arguments

path

File or folder path.

Return value

Root of specified path.

Description

Returns the root of the specified path.

On error, an empty string will be returned.

If the path is already a root, it will be returned unchanged.

Example:

Output(Root("C:\one\two\file.jpg"));
--> C:\

See also:
FileExt
FilePart
Parent
Stem