Function Reference


_WinAPI_PathStripPath

Removes the path portion of a fully qualified path and file

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

Parameters

$sFilePath The path and file name.

Return Value

Returns the string contains only the file name, with the path removed.

See Also

Search PathStripPath in MSDN Library.

Example

#include <WinAPIShPath.au3>

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

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