Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I run a batch file in “Next Action” command line?

batch Command file line run
0
Posted

How can I run a batch file in “Next Action” command line?

0

To specify a batch file or script to execute upon PDF generation, bring up the pdfMachine options and select ‘Next Action/ Email’ then set ‘Next Action’ to ‘Execute command line’. New limitations in Windows have made it so that batch files will only run if you pipe the output to another file. For example, you can set the command line to “cmd /c c:\YourName.bat %s > c:\YourNameOut.txt”. The %s is substituted with the name of the pdf file produced, and any output from your batch file is sent to c:\YourNameOut.txt. Alternatively, you can run other executables, including cscript.exe as shown in this cscript “Next Action” example.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123