6 Replies Latest reply on Apr 14, 2014 7:01 AM by The other Jack

    Problem with CFExecute...

    The other Jack

      I am trying to use cfexecute to run a video conversion application. The application is installed at:

      C:\Program Files\SourceTec\vee\vee.exe

       

      The video I want to convert is stored in the temp directory as returned by GetTempDirectory() which in this case is:

      C:\ColdFusion9\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\

       

      I've tried a wide range of different ways to call this program and whenever it seems like I'm getting close, I get the following error:

      Error: Failed to open the source file "C:\ColdFusion9\runtime\bin\vee".

       

      I don't have any files in that directory and am not attempting to access it explicitly but ColdFusion keeps trying to find something in that directory and I don't understand why.

       

      The following code works:

      <cfexecute name="C:\Program Files\SourceTec\vee\vee.exe" arguments="vee -v" timeout="300" variable="results"></cfexecute>

      ...but all it does is display the version number of the video encoder engine: Version: 3.2 (Build 322)

       

      When running this code:

      <cfexecute name="C:\Program Files\SourceTec\vee\vee.exe" arguments="vee #GetTempDirectory()#test.avi -i" timeout="300" variable="results" ></cfexecute>

      ...It should look at the test.avi file in the temp directory and return info about it (-i). Instead, I get the error I mentioned above:

      Error: Failed to open the source file "C:\ColdFusion9\runtime\bin\vee".

       

      Why is CF looking in C:\ColdFusion9\runtime\bin\vee for a source file?