Executing Windows Batch file (.bat)

Post Reply
netaware
Newbie
Posts: 16
Joined: Tue Jul 30, 2024 7:11 pm

Executing Windows Batch file (.bat)

Post 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?
User avatar
JimmyHartington
Advanced member
Posts: 453
Joined: Tue Mar 22, 2011 7:38 am

Re: Executing Windows Batch file (.bat)

Post 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.
User avatar
JimmyHartington
Advanced member
Posts: 453
Joined: Tue Mar 22, 2011 7:38 am

Re: Executing Windows Batch file (.bat)

Post 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 415 times
Post Reply