# RunApp

## Description

Runs an external executable that is independent of this app. It will return an ID that you can use to check if the app is still running or in extreme cases to terminate the app. If this fails it will return 0. Currently only works on Windows, Mac, Linux, and Raspberry Pi.

## Definition

integer RunApp( szFilename, szParameters )

UINT agk::RunApp( const char *szFilename, const char *szParameters )

## Parameters

- szFilename - The filename of the new app, this is accessed just like any other file in AGK
- szParameters - Optional command line parameters to pass to the app, or an empty string