CFExecute fails but same code works from command line
Posted on 2004-09-03
I am trying to call a small conversion tool via cfexecute and it times out when I call it. I have several tools that use cfexecute so I understand the basics and have even made some tricky ones work but this has me stumped, especially because it is so simple.
The code looks like this
<cfexecute name="C:\SCPDF\SolidConvertPDF.exe" arguments=" /i inputfilename /o outputfilename" timeout="30">
When I run this I get a timeout. If I cut and paste the code from the error message on the command line it works fine. So, thinking that I might have a permission problem, I looked down all of those alleys with no success. I did run across a posting somewhere that suggested putting this in a batch file, which I did. It then looked like this:
<cfexecute name="C:\thetool.bat" arguments="inputfilename, outputfilename" timeout="30">
When I ran this I got the exact same thing, timed out in CF yet when I pasted the code from the error on the command line, it ran like a champ.
I've tried moving the directory, installing the utility to the web server root, cffusion and any place else that I thought would work. I also installed it in the directory of another utility that I have that runs fine so I don't think it's a directory permission thing.
Does anyone have any idea where to go with this?