Removes the file name extension from a path, if one is present
#include <WinAPIShPath.au3>
_WinAPI_PathRemoveExtension ( $sFilePath )
$sFilePath | The path from which to remove the extension. |
Search PathRemoveExtension in MSDN Library.
#include <WinAPIShPath.au3>
Local $sPath = 'C:\Documents\Test.txt'
ConsoleWrite('Before: ' & $sPath & @CRLF)
ConsoleWrite('After : ' & _WinAPI_PathRemoveExtension($sPath) & @CRLF)