Page 1 of 1

Run Batch file from Command Executor

Posted: Mon Apr 24, 2023 3:50 am
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.

Re: Run Batch file from Command Executor

Posted: Mon Apr 24, 2023 8:26 am
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.