RUN()

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Function to execute an operating system command or an external program


Syntax

RUN(<expC> [, <expL1] [, <expL2>]])


See Also

!, !!, ALIAS, DO, RUN, SPAWN, EXEC(), GETENV(), PIPETOSTR(), PUTENV(), SET RUNCLEAR, SET RUNWAIT, DB_RUNLOG


Description

The RUN() function loads the specified operating system command or external program to be executed by the operating system. The operating system command or external program is specified with character expression <expC>. If the specified program is a batch file whose full path name is not the default path, and you are loading the program to the operating system via the command interpreter, <expC> must include the file extension.

<expL1> If <expL1> is .T. (true), output will be displayed in a text area. Default is .F. (false).

<expL2> If <expL2> is .T. (true), output will be displayed full screen. Default is .F. (false).

The RUN() function returns an operating system dependent numeric completion code.


Example

run("dir",.t.,.f.)


Products

Recital, Recital Server