Skip to main content
Participant
Apr 14, 2021 8:53 AM UTC
Answered

ColdFusion executing compiled Python exe

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 is closed to new replies. Start a new post to keep the conversation going.
Jamal5EF0Correct answer
Participant
Apr 15, 2021 8:28 AM UTC

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
Apr 15, 2021 8:28 AM UTC

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

Translate