1.
I want to call an external application with parameters for all the selected items.
I came up with this, but it doesn't work:
Code: Select all
"PNG out"
$selectedfiles = get("SelectedItemsNames",|);
foreach($file,$selectedfiles,|)
{
run '"C:\Utilities\XnView\AddOn\PngOut.exe" /y ' . "$file"
}So, I changed it to this, which does work:
Code: Select all
"PNG out"
$selectedfiles = get("SelectedItemsNames",|);
foreach($file,$selectedfiles,|)
{
run '"C:\Utilities\XnView\AddOn\PngOut.exe" /y "' . $file . '"'
}2.
Because I have a CPU with 4 cores, I would like to launch 4 PNGout processes, and then wait until they are done and then continue with the next 4. Ofcourse, if there is a way to have 4 in flight that would be even better.
I would really appreciate some help.
XYplorer Beta Club