Skip to main content
Participant
April 14, 2021
Answered

ColdFusion executing compiled Python exe

  • April 14, 2021
  • 1 reply
  • 896 views

Hi

I have created a python script that genarete a word document. I want to call this script from coldfusion app. so i add this code :

<cfexecute name="C:\tmp\docGen.exe" outputFile = "C:\tmp\output.txt" timeout="10000" errorVariable="error" />

 

But notthing happens , only output.txt is created. But no result.docx file and no error displayed

 

 

This topic has been closed for replies.
Correct answer Jamal5EF0

SOLVED: 1- there were some rights that were missing. coldfuson user had to have access to run pyhton exe file
2- I called the bat file in the cfexcute tag. Bat file started cmd command with pyhton exe file

1 reply

Jamal5EF0AuthorCorrect answer
Participant
April 15, 2021

SOLVED: 1- there were some rights that were missing. coldfuson user had to have access to run pyhton exe file
2- I called the bat file in the cfexcute tag. Bat file started cmd command with pyhton exe file