Function Reference


_WinAPI_PathUnquoteSpaces

Removes quotes from the beginning and end of a path

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

Parameters

$sFilePath The path.

Return Value

Returns the path with beginning and ending quotation marks removed.

See Also

Search PathUnquoteSpaces in MSDN Library.

Example

#include <APIREgConstants.au3>
#include <WinAPIReg.au3>
#include <WinAPIShPath.au3>

Local $sPath = _WinAPI_AssocQueryString('.txt', $ASSOCSTR_COMMAND)

ConsoleWrite('Command: ' & $sPath & @CRLF)
ConsoleWrite('Path: ' & _WinAPI_PathUnquoteSpaces(_WinAPI_PathRemoveArgs($sPath)) & @CRLF)
ConsoleWrite('Arguments: ' & _WinAPI_PathGetArgs($sPath) & @CRLF)