| Contents > CFML Reference > ColdFusion Tags > cfexecute |
|
|
|
|
||
Executes a ColdFusion developer-specified process on a server computer.
Extensibility tags, Flow-control tags
<cfexecute
name = " ApplicationName "
arguments = "CommandLine Arguments"
outputFile = "Output file name" variable = "variable name"
timeout = "Timeout interval">
...
</cfexecute>
cfcollection, cfindex, cfobject, cfreport, cfsearch, cfwddx
ColdFusion MX 6.1:
variable attribute.outputFile attribute: if you do not specify an absolute file path in the outputFile attribute, the path is relative to the ColdFusion temporary directory.Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
name |
Required |
|
Absolute path of the application to execute. On Windows, you must specify an extension; for example, C:\myapp.exe. |
arguments |
Optional |
|
Command-line variables passed to application. If specified as string, it is processed as follows:
If passed as array, it is processed as follows:
|
outputFile |
Optional |
|
File to which to direct program output. If no If not an absolute path (starting a with a drive letter and a colon, or a forward or backward slash), it is relative to the ColdFusion temporary directory, which is returned by the |
variable |
Optional |
|
Variable in which to put program output. If no |
timeout |
Optional |
0 |
Length of time, in seconds, that ColdFusion waits for output from the spawned program.
If the value is 0:
|
Do not put other ColdFusion tags or functions between the start and end tags of cfexecute. You cannot nest cfexecute tags.
Throws the following exceptions:
The time out values must be between zero and the longest time out value supported by the operating system.
<h3>cfexecute</h3> <p>This example executes the Windows NT version of the netstat network
monitoring program, and places its output in a file. <cfexecute name = "C:\WinNT\System32\netstat.exe" arguments = "-e" outputFile = "C:\Temp\output.txt" timeout = "1"> </cfexecute>
|
|
||
| Contents > CFML Reference > ColdFusion Tags > cfexecute |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
rss feed | send me an e-mail when comments are added to this page | comment report
current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p25.htm
Comments
oystein.halvorsen said on Nov 4, 2003 at 5:57 AM : fraxen said on Nov 5, 2003 at 12:14 AM : francesco.strazzulla said on Nov 19, 2003 at 8:02 AM : no screen name said on mar 8, 2004 at 12:11 pm : georgia_geno said on mar 15, 2004 at 6:53 am : jasonuo said on jun 7, 2004 at 11:46 am : carehart said on jul 14, 2004 at 1:34 pm : no screen name said on aug 13, 2004 at 1:38 pm : patboens said on aug 20, 2004 at 5:29 am : no screen name said on oct 9, 2004 at 11:24 am : fhaer said on oct 12, 2004 at 10:48 am : crjangel said on oct 29, 2004 at 6:55 am : arden o said on nov 2, 2004 at 8:26 pm : tibs75 said on nov 7, 2004 at 4:58 pm : dplusplus said on nov 12, 2004 at 11:13 am : annoyed customer said on dec 19, 2004 at 8:28 pm : annoyed customer said on dec 19, 2004 at 9:18 pm : davidlam808 said on dec 23, 2004 at 2:23 am : davidlam808 said on dec 23, 2004 at 11:11 am : hall said on dec 24, 2004 at 8:45 am : spage said on jan 20, 2005 at 2:04 pm : brentil said on mar 1, 2005 at 12:58 pm : no screen name said on mar 2, 2005 at 4:35 am :