Funktionreferenz


_WinAPI_CommandLineToArgv


Parses a command-line string and returns an array of the command-line arguments

#include <WinAPIShPath.au3>
_WinAPI_CommandLineToArgv ( $sCmd )

Parameter

$sCmd The string that contains the full command line. If this parameter is an empty string the function returns an empty array (zeroth element is 0).

Rückgabewert

Success: the array of the command-line arguments. The zeroth array element contains the number of arguments.
Failure: sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

Bemerkungen

None.

Siehe auch

Suche nach CommandLineToArgvW in der MSDN Bibliothek.

Beispiel

#include <Array.au3>
#include <WinAPIShPath.au3>

Local $aData = _WinAPI_CommandLineToArgv('"a b" c d')
_ArrayDisplay($aData, '_WinAPI_CommandLineToArgv')