How can I run a batch file in “Next Action” command line?
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.