Run Batch file from Command Executor

Questions and answers on how to get the most out of FFAStrans
Post Reply
MichaelDW96
Posts: 5
Joined: Fri Apr 14, 2023 4:12 am

Run Batch file from Command Executor

Post by MichaelDW96 »

Can someone tell me what I'm doing wrong?

I want to end my workflow by running a batch file, so I set up a command executor processor, and use the following parameters:
cd C:\Users\midso\Desktop\indexer\

start index-bgvid.bat
I also tried it with quotes around the paths, and also simply
C:\Users\midso\Desktop\indexer\index-bgvid.bat
Image

I keep getting returned error 1.
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Run Batch file from Command Executor

Post by momocampo »

Hi MichaelDW96,

You can't use 2 lines, you have to use a "&" to execute 2 commands, like this :

Code: Select all

cmd /c "cd C:\Users\midso\Desktop\indexer & index-bgvid.bat"
I think it could be ok.

cheers

B.
Post Reply