SysProcessExecuteCommand2 (FUN)

FUNCTION SysProcessExecuteCommand2 : DINT

<description>Function to start a system command. The command is operating system dependent!

Command will be executed, only if allowed (see settings for details). Output of the executed command will be filled into pszStdOut.

</description> <result><p>RESULT: Number of bytes, read from the commands output.</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysProcessExecuteCommand2

DINT

Input

pszCommand

REFERENCE TO STRING

<param name=”pszCommand” type=”IN”>Command line parameters to be transmitted to application at execution</param>

pszStdOut

REFERENCE TO STRING

<param name=”pszStdOut” type=”IN”>Buffer for StdOut string</param>

udiStdOutLen

UDINT

<param name=”udiStdOutLen” type=”IN”>Buffersize for StdOut string buffer</param>

pResult

POINTER TO RTS_IEC_RESULT

<param name=”pResult” type=”OUT”>Pointer to runtime system error code. ERR_PARAMETER: if pszCommand, pszStdOut or udiStdOutLen is null, ERR_NO_ACCESS_RIGHTS: if command is not allowed</param>