Page 1 of 1

Executing Windows Batch file (.bat)

Posted: Wed Jun 11, 2025 8:15 pm
by netaware
I have a flow that is assembling a job folder consisting of 2 files and building a Windows batch file (.bat) to run from within the job folder.

I am able to get everything together, but I am having trouble running the batch file.

The batch file runs from the command prompt perfectly.

I am using the RUN command, but it is deleting the job folder. The Execute Command does not allow me to run the file dynamically.
The Execute Command Friend application documentation is outdated.

I need to preserve the job folder and output the command produces.

Does anyone have any ideas how I can do this?

Re: Executing Windows Batch file (.bat)

Posted: Thu Jun 12, 2025 7:30 am
by JimmyHartington
Can you share your bat script? This would make it a bit easier to help troubleshoot.

I have had some flow, where I "cd" into a folder in a bat file and do the processing.
Perhaps this is possible here.

Re: Executing Windows Batch file (.bat)

Posted: Thu Jun 12, 2025 7:40 am
by JimmyHartington
It could then look like the flow below.

2 arbitrary files are assembled into a jobfolder.
The "Run Command" app cds into the directory and runs a command to create an empty file.
This is created in the job-folder.
Royal TSX-Flow-server03-2025-06-12 at 07.39.17@2x.png
Royal TSX-Flow-server03-2025-06-12 at 07.39.17@2x.png (109.08 KiB) Viewed 420 times