Difference between revisions of "RUN()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=RUN()=
 
 
 
==Class==
 
Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to execute an operating system command or an external program
 
Function to execute an operating system command or an external program

Revision as of 16:09, 28 October 2009

Purpose

Function to execute an operating system command or an external program


Syntax

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


See Also

!, !!, ALIAS, DO, RUN, SPAWN, EXEC(), GETENV(), 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.

The two logical expressions, <expL1> and <expL2>, are provided for syntax compatibility only.

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


Example

run("dir")


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer