I want to automatically generate a PDF report. For this I use for Application: C:\Windows\System32\cmd.exe
and for Arguments: "C:\path_to_exe\morph.exe" /report "C:\Path_to_morph_file\belegdaten_export.morph"
If I execute the command via cmd it works. But if I now execute the command in Easymorph, I get the error at Capture output: “The command ‘eport’ is either misspelled or could not be found.”
First of all, thank you very much for your help so far. One question still remains.
I have tried both methods and they work in theory. However, after the action “RunProgram” I still have the action “Send Email”. I would like to have the generated PDF report sent by email.
If I now run the program in the scheduler or manually, the whole program seems to freeze. When I end the process via the task manager, I receive up to hundreds of emails at once, depending on the duration of the process.
@Jan, thank you for the project. Generating a report from a project still requires running that project, so when you try to make the project generate a report on itself, you are creating an infinite loop. You should move the "Run program" and "Send email" actions to another project.