Running a .bat file

Post Reply
abonsey
Member
Posts: 98
Joined: Fri May 24, 2013 5:10 pm

Running a .bat file

Post 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
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Running a .bat file

Post 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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Post Reply