使用coldfusion计划任务运行.exe文件时出错

时间:2015-06-10 11:18:46

标签: coldfusion scheduled-tasks

我需要使用coldfusion计划任务在app服务器上运行exe文件。我使用下面的 cfexecute 命令在cfm文件中编写代码。 但是可执行文件在cfexecute中没有使用/不使用超时子句运行。任何人都可以指出我做错了什么。

<cfsetting enableCFOutputOnly="false" requestTimeout="9600" />
<!--- Call executable --->
<cftry>
 **<cfexecute name= "C:\npp.exe" />**      
   <cfcatch type="Any">
    <cfoutput>(Cal): Error - #cfcatch.message#</cfoutput>
    <!--- TO DO:Log error --->
    <cflog application="true" log="application" type="Error" 
        text=" Error - #cfcatch.message#" />
    </cfcatch> 
 </cftry>
  <cflog application="true" log="application" type="Information" text=" executable called" />

0 个答案:

没有答案