system.util.execute

Description

Executes the given commands via the operating system, in a separate process. The commands argument is an array of strings. The first string is the program to execute, with subsequent strings being the arguments to that command.

Syntax

system.util. execute( commands )

  • Parameters

String[] commands - A list containing the command (1st entry) and associated arguments (remaining entries) to execute.

  • Returns

nothing

  • Scope

All

Code Examples
Code Snippet
# This code would work on a Windows system to play a sound file.
system.util.execute(["sndrec32", "/play", "/close", "/embedding", "C:\\somethingwrong.wav"])