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.
Up to 100,000 records can be processed with the freeware version!
Flowheater Chart

Execute Task

More
3 years 3 months ago #3638 by JD Cox
Execute Task - Post(3638) 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 3 months ago #3639 by FlowHeater-Team
Replied by FlowHeater-Team on topic Execute Task - Post(3639)
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

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

More
3 years 3 months ago #3640 by JD Cox
Replied by JD Cox on topic Execute Task - Post(3640)
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 3 months ago #3641 by FlowHeater-Team
Replied by FlowHeater-Team on topic Execute Task - Post(3641)
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

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

More
3 years 2 months ago #3642 by JD Cox
Replied by JD Cox on topic Execute Task - Post(3642)
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.289 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.