Parses a path, ignoring the drive letter or Universal Naming Convention (UNC) server/share path elements
#include <WinAPIShPath.au3>
_WinAPI_PathSkipRoot ( $sFilePath )
$sFilePath | The path to parse. |
Search PathSkipRoot in MSDN Library.
#include <WinAPIShPath.au3>
Local $sPath = 'C:\Documents\Test.txt'
ConsoleWrite('Before: ' & $sPath & @CRLF)
ConsoleWrite('After : ' & _WinAPI_PathSkipRoot($sPath) & @CRLF)