CFExecute not performing command

Posted by Drew on Stack Overflow See other posts from Stack Overflow or by Drew
Published on 2010-05-05T15:26:22Z Indexed on 2010/05/05 15:58 UTC
Read the original article Hit count: 336

Filed under:
<cfset LOCAL.cmd = expandPath('..\library\gm.exe') />
<cfset LOCAL.args = "convert image1.jpg image2.jpg" />

<cfexecute variable="gm" errorVariable="error"
 name="#LOCAL.cmd#" 
 timeout="10" 
 arguments="#local.args#" />

<cfdump var="#gm#" />

This code always results in an empty string in gm. No matter how I execute gm with or without parameters. Other examples work fine like running cmd.exe or netstat.exe as is in the CFDocs example. I get no errors thrown or warnings in errorVariable, it simply does nothing.

© Stack Overflow or respective owner

Related posts about coldfusion