Function Reference


_WinAPI_PathSkipRoot

Parses a path, ignoring the drive letter or Universal Naming Convention (UNC) server/share path elements

#include <WinAPIShPath.au3>
_WinAPI_PathSkipRoot ( $sFilePath )

Parameters

$sFilePath The path to parse.

Return Value

Returns the string contains only subpath that follows the root (drive letter or UNC server/share).

See Also

Search PathSkipRoot in MSDN Library.

Example

#include <WinAPIShPath.au3>

Local $sPath = 'C:\Documents\Test.txt'

ConsoleWrite('Before: ' & $sPath & @CRLF)
ConsoleWrite('After : ' & _WinAPI_PathSkipRoot($sPath) & @CRLF)