Error while Running a .exe file using coldfusion schedule task

375 views Asked by At

I need to run a exe file on app server using coldfusion schedule task. I wrote code inside cfm file with cfexecute command below. But the executable doesn't run with/without timeout clause in cfexecute. Can anyone point out what I'm doing wrong.

<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

There are 0 answers