1 Reply Latest reply on Nov 21, 2006 11:51 AM by ksmith

    <CFexecute> not giving output

      code at command line which is working fine should be executed.

      > license_gen.exe test.xoq -o test.txt -v

      arguments to exe file:
      text.xoq is the input file name
      test.txt is the output file name

      I want to execute the same from the coldfusion cfexecute and its not working.

      <Cfexecute name="C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\test\license_gen.exe" arguments="test.xoq -o test.txt -v">

      Please correct me where I am wrong.
        • 1. Re: &lt;CFexecute&gt; not giving output
          ksmith Level 1
          Where are the test.* files? CF is probably looking in jrun4/bin for them, where it runs. I would try fully qualifying the files with paths to start.

          I also find creating a .BAT file that runs your exe, useful. That way you can specify environment variables and CD to the directory you want, etc. The line:
          C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\test\license_gen.exe %1 %2
          in you batch file will allow you to pass 2 arguments to the exe.