Sure! "Pause" to be there just for "debugging" purposes. Since the command works as intended it's no longer needed.jeee_michel wrote: 2023-04-13, 19:46 UTC ...i guess its safe to remove pause from the end of param= ?
So, you can safely remove ";pause" part.
You also can just to disable it by putting the "#" comment mark in front of it [;pause -> #;pause]
Thus, the final version of the command can be as compact as follows:
Code: Select all
[em_pdf_selected]
cmd=Powershell -ExecutionPolicy Bypass; set bin -value "C:\CMYK.exe";
param=Get-Content "%L"|ForEach-Object -process {& $bin $('"""'+$_+'"""')}