Function Reference


_WinAPI_PathRemoveExtension

Removes the file name extension from a path, if one is present

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

Parameters

$sFilePath The path from which to remove the extension.

Return Value

Returns the path without extension.

See Also

Search PathRemoveExtension in MSDN Library.

Example

#include <WinAPIShPath.au3>

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

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