Core Function GetPathRoot
From Sputnik Wiki
GetPathRoot ( <path> )
Contents |
Description
Gets the root directory information of the specified path.
Parameters
path
The path to use.
Return Value
Success: Returns the root directory of path, such as "C:\"
Failure: Returns empty string.
Remarks
None
Example
$File = 'c:\windows\System32\Sputnik.exe'; println( GetPathRoot($File) );