CFX_Execute (1.3) December 05 2004

by Lewis A. Sellers

Send related correspondence to: webmaster@intrafoundation.com

Windows ColdFusion CFX [w/ C source code]

Description

PREAMBLE
This is one of a set of clones of the cf functions CFFILE, CFDIRECTORY and CFEXECUTE, etc. They operate essentially the same the built-in 4.5.x versions. They may have some additional features or lack a few (irrelevant) features.

CFX_Execute
<CFX_Execute
NAME="Application"
ARGUMENTS="Command line arguments"
OUTPUTFILE="Output file name"
VARIABLE="Output variable name"
TIMEOUT="Timeout seconds"
>
This is a clone of CFEXECUTE. It has been machined to work exactly like CF4.5's CFEXECUTE except that

There is an additional parameter called VARIABLE that allows the output to be placed in the variable specified.
It doesn't throw hard exceptions if there's a problem (they can't be handled by pre-cf4.5 servers).
Errors are returned in the ExecuteError variable.

Return codes, if any, are returned in ExecuteReturnCode.

My best guess is the C++ code is probably very similiar to the actual CFXECUTE function. This tag should be considered an upgrade from CFX_ConsoleCommand, CFX_SpawnL, etc.

Installation
Register the tag execute.dll as cfx_Execute. (Optionally, on pre-MX versions of ColdFusion, click the autoinstall script.)

Version History


There is no gallery currently available.