FlowHeater - The Data Import / Export Specialist
 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Execute Task 3 weeks 5 days ago #3638

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.

Execute Task 3 weeks 5 days ago #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

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.
Attachments:

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

Execute Task 3 weeks 5 days ago #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.

Execute Task 3 weeks 4 days ago #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

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.
Attachments:

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

Execute Task 3 weeks 4 days ago #3642

Thanks Robert, as always.
That gets it done.

JD
 

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

  • Page:
  • 1
Time to create page: 0.106 seconds

other Languages

de

FlowHeater Home

de en

Imprint/Contact

Privacy Statement

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

Follow us on

twitter  facebook

YouTube

 de en