- Posts: 109
Execute Task
- JD Cox
- Topic Author
- Offline
- User
Less
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
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.
- FlowHeater-Team
- Offline
- Admin
3 years 1 month ago #3639
by FlowHeater-Team
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.
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.
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.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
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
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.
- FlowHeater-Team
- Offline
- Admin
3 years 1 month ago #3641
by FlowHeater-Team
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.
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
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.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
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
That gets it done.
JD
Please Log in or Create an account to join the conversation.
Time to create page: 0.273 seconds