• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

<CFexecute> not giving output

New Here ,
Nov 21, 2006 Nov 21, 2006

Copy link to clipboard

Copied

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">
</cfexecute>

Please correct me where I am wrong.
TOPICS
Advanced techniques

Views

202

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 21, 2006 Nov 21, 2006

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation