我需要使用冷融合计划任务在应用服务器上运行 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" />