## IupExecuteWait (since 3.20)

Runs the executable with the given parameters.

It is a synchronous operation, i.e. the function will wait the command to terminate before it returns.

In Windows, there is no need to add the ".exe" file extension.

### Parameters/Return

    int IupExecuteWait(const char* filename, const char* parameters); [in C]
    iup.ExecuteWait(filename[, parameters]: string) -> (ret: number) [in Lua]

filename: name of the executable. Can contains a path.
parameters: optional parameters. Can be NULL.

Returns: 1 if successful, -1 if failed. In Windows and GTK can return -2 if file not found.