Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Chart

Execute Task

More
3 years 1 month ago #3638 by JD Cox
Execute Task was created by JD Cox
Is it possible to execute a task with a cmd file?
For our non sftp customers, I have inventory exports set up on a FH Server schedules to execute at 5PM that email a csv file to the customer. 
Some customers want their inventory when we're finished processing their orders for the day.  In short if we finish at 3PM someone in the office must export the file and email it to them.
I have a workaround with several parts, put would like to execute a FH Server task with a cmd file

Thanks, JD

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #3639 by FlowHeater-Team
Replied by FlowHeater-Team on topic Execute Task
Hi JD,

Yes, of course. You can choose FlowHeater Definitions (.fhd | .fhrt), directly executable files (.exe), command scripts like .bat and .cmd or PowerShell (.ps1) script files as well.

For your purpose just add another step after your CSV file export and select your desired CMD command script.

 

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #3640 by JD Cox
Replied by JD Cox on topic Execute Task
Thanks Robert but I'm not sure that's what I'm looking for. 
I trigger all my definitions with a command script.
I want to execute a FH Sever Task with a command script that creates the csv file.

JD

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #3641 by FlowHeater-Team
Replied by FlowHeater-Team on topic Execute Task
Hi JD,

That’s quite simple. Just create a new “File Monitoring” task who watch for a specific file, e.g cmd.trigger. In this task you just have to disable the option “hand over current file name”, see screenshot below.

In your CMD script you can now trigger this task with a simple echo output redirected to a file

e.g.
    echo trigger task > C:\FlowHeater\cmd.trigger

 

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #3642 by JD Cox
Replied by JD Cox on topic Execute Task
Thanks Robert, as always.
That gets it done.

JD
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.273 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.