Page 1 of 1

Running a .bat file

Posted: Thu Feb 11, 2016 1:44 pm
by abonsey
I've a folder that contains PDFs, pdftk & a .bat file.
When running as a stand-alone folder the .bat file runs, finds common files and merges into a single PDF. All set to search within that folder. The result is many files are reduced to just a few.
When running the execute command I can point to the .bat file as it arrive but nothing arrives in the output folder of the flow.
My questions are:
As the .bat file is self-contained ie it knows to look for PDFs within the same folder and creates the output files within the same folder, what should %1 %2 %3 be set to?
What output setting should I use?
What exit code should I use?

I've never run .bat files within Switch before so it's all new to me.


Thanks

Re: Running a .bat file

Posted: Sun Feb 14, 2016 3:01 pm
by gabrielp
To answer those questions, you'd either have to share the .bat file or show the command you run to execute it successfully. I don't really use the execute configurator so I probably wouldn't be the best person to answer your question anyway.

If you're just looking to merge PDFs based on some logic, you may find that it's safer and easier to maintain to have Switch do it in a flow.