Answered
Execute bat file with cfexecute
Hello,
this is a newbie question but I'm stuck. I have a .bat that runs fine through the command prompt but won't run with <cfexecute>, it merely seems to read the .bat but not execute it. The .bat reads:
java -classpath ".;C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI
When I run <cfexecute name="C:\CFusionMX7\wwwroot\i-recall\javaClasses\GateClasspathRun.bat" variable="myVar" timeout="100">
</cfexecute>
The output looks like this:
C:\CFusionMX7\runtime\bin>java -classpath "C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI
It simply reads it and doesn't execute the java AnnieAPI command. I didn't write this .bat file so maybe I need to add something to make it run. Any help is appreciated.
-Kalen G
this is a newbie question but I'm stuck. I have a .bat that runs fine through the command prompt but won't run with <cfexecute>, it merely seems to read the .bat but not execute it. The .bat reads:
java -classpath ".;C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI
When I run <cfexecute name="C:\CFusionMX7\wwwroot\i-recall\javaClasses\GateClasspathRun.bat" variable="myVar" timeout="100">
</cfexecute>
The output looks like this:
C:\CFusionMX7\runtime\bin>java -classpath "C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI
It simply reads it and doesn't execute the java AnnieAPI command. I didn't write this .bat file so maybe I need to add something to make it run. Any help is appreciated.
-Kalen G
